|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T U a
Length: 653 (0x28d)
Types: TextFile
Notes: UNIX file
Names: »addcr«, »addcrff«
└─⟦c93a30372⟧ Bits:30004169/disk3.imd Uniplex II+ V.6 release 1.0 (dansk)
└─⟦c93a30372⟧ UNIX Filesystem
└─⟦this⟧ »up/new/usr/UAP/unsupported/addcr«
└─⟦this⟧ »up/new/usr/UAP/unsupported/addcrff«
: 'addcr/addcrff - filters to add CARRIAGE RETURN to LINEFEED in text
L..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..R.
Usage: addcr [file]
or: addcrff [file]
where: file - is file name. Defaults to stdin
addcr adds CR to each LF
addcrff also appends a FORMFEED at end of input
eg: addcr my.file | lp
addcrff < my.file > /dev/lp
Portability:
Should run on any version of shell
L..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..T..R.
'
CR=`echo | tr '\012' '\015'`
sed "s/$/$CR/" $*
case "$0" in
*addcrff) echo | tr '\012' '\014';;
esac