Home  Articles  Programs 

DOS/Windows ASCII to UNIX ASCII Converter for LUnix

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


Description:


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

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

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

Example Usage in LUnix:

cat dosfile ! dos2unix ! unix2cbm ! more

cat dosfile ! dos2unix ! tee yourfile

cat dosfile ! dos2unix ! lpr -p

Notes:

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

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 , unix2dos

Tags:C64, LUnix, OS

C64 Projects Twitter Page

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