Home  Articles  Programs 

UNIX/Linux ASCII to DOS/Windows ASCII Converter for LUnix

Title:UNIX/Linux ASCII to DOS/Windows ASCII Converter for LUnix
 The unix2dos converts an ASCII-LF UNIX text to a CRLF-terminated DOS/Windows ASCII text.
Filename:unix2dos.bin (Click to download)
Category:Utility
Platform:C64 LUnix
Language:Machine Language
Date:1997.07.01
Size:130 bytes
Programmer:İlker Fıçıcılar


Description:


The unix2dos converts an ASCII-LF UNIX text to a CRLF-terminated DOS/Windows ASCII text.

This 'unix2dos' is a filter-type command for LUnix. It is used in combination with other commands through pipe (='!' in LUnix) character.

It converts any LF (Line-Feed) terminated ASCII text fed through STDIN to CR+LF (Carriage-Return + Line-Feed) terminated ASCII text.

Example Usage in LUnix:

cat yourfile ! unix2dos ! more

ed ! cbm2unix ! unix2dos

cat yourfile ! unix2dos ! lpr -p

Notes:

Press ^C or ^D (control-c and control-d keys) to stop execution of these commands.

ed is a line editor for LUnix by İlker Fıçıcılar.

lpr is a line printer driver for LUnix.

lpr -4 prints to a serial-bus CBM printer.

lpr -p prints to a Centronics printer connected through parallel geocable interface.

Similar commands: cbm2unix , unix2cbm , dos2unix

Tags:C64, LUnix, OS

C64 Projects Twitter Page

İlker Fıçıcılar's CBM Page