lifget - extract a file from a LIF image file
lifget [-r] [-b] [-l] [-p] <LIF image file> <filename> <output file>
lifget [-r] [-b] [-l] [-p] <LIF image file> <filename>
(last form send the extracted file to standard output)
lifget -?
lifget extracts a single file, specified by filename from a LIF image file. filename is case-sensitive and must be given in upper case. If lifget is executed with 3 arguments after the options then the third argument is used as the name of the file that the LIF file is copied to. If only 2 arguments are given then the file is copied to standard output.
-r |
Remove the 32-byte header consisting of the directory record from the LIF disk directory from the beginning of the output file. | ||
-b |
Copy the blocks occupied by the file (including the entire last block) rather then the number of bytes given by the file length. This option has no meaning for file types where the file is always assumed to occupy complete blocks. | ||
-l |
Relax file name checking, allow underscores in filenames. | ||
-p |
Read file from a floppy disk with a LIF file system. Note: this option is only supported on LINUX. Specify the floppy device instead of the lif-image-filename. See the LIFUTILS tutorial for details. | ||
-? |
Print a message giving the program usage to standard error. |
If disk1.dat is a LIF image file containing a HP-41 SDATA file called TEST1 then
lifget disk1.dat TEST1 lif_test_file.d41
will copy the file TEST1 from the LIF disk image to the LIF file lif_test_file.d41.
The LIF disk directory format is documented in the HP-IL Interface Owners Manual for the HP-71 (Hewlett-Packard) with further details (particularly HP41 and HP75 file types) in the HP-41 Synthetic Quick Reference Guide (Jeremy Smith)
Not all file types have been tested.
lifget was written by Tony Duell, ard@p850ug1.demon.co.uk and has been placed under the GNU Public License version 2.0