textlif - a filter to convert an ASCII file to a LIF text file
textlif [-r registers] [-l] <LIF filename> < Input file > Output file
textlif -?
textlif is a filter which generates a LIF file from a text file. The filter reads the text from standard input and writes the LIF file header and the LIF formatted text to standard output. This file type can be used on the HP-71 (TEXT) or the HP-41 extended Memory or HEPAX file system (ASCII). If the file shall be used on a HP-41 the -r option is mandatory.
-r |
This option specifies the file size in registers which shall be allocated for the resulting file in the HP-41 extended memory or the HEPAX file system. If a value of 0 is specified the number of register is determined from the size of the input text file. According to the HEPAX documentation the maximum file size is 577 registers. | ||
-l |
Relax file name checking, allow underscores in LIF filename. | ||
-? |
Print a message giving the program usage to standard error. |
The HP text file format is documented in section 11.2.8.1 of the HP71 Software Internal Design Specifications Volume 1 (Hewlett-Packard)
If demo.txt is an ASCII text file then
cat demo.txt | textlif DEMO | lifput lifimage.dat
will put the LIF text file with the name DEMO into the LIF image file lifimage.dat
textlif was written by Joachim Siebold, bug400@gmx.de using code from Tony Duell, ard@p850ug1.demon.co.uk and has been placed under the GNU Public License version 2.0