Home  Articles  Programs 

ASCII to PETSCII Converter for LUnix

Title:ASCII to PETSCII Converter for LUnix
 The unix2cbm converts an ASCII text to PETSCII with CR termination.
Filename:unix2cbm.bin (Click to download)
Category:Utility
Platform:C64 LUnix
Language:Machine Language
Date:1997.07.01
Size:394 bytes
Programmer:İlker Fıçıcılar


Description:


The unix2cbm converts an ASCII text to PETSCII with CR termination.

This 'unix2cbm' 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 (Carriage-Return) terminated PETSCII text to be used in Commodore machines.

Example Usage in LUnix:

cat yourfile ! unix2cbm ! more

cat yourfile ! unix2cbm ! tee myfile

cat yourfile ! unix2cbm ! lpr -4

Notes:

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

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

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

Similar commands: cbm2unix , dos2unix , unix2dos

Tags:C64, LUnix, OS

C64 Projects Twitter Page

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