LIFGET Manual Page
NAME
lifget - extract a file from a LIF disk or image
SYNOPSIS
lifget [-d] [-b] <input device> <filename> <output file>
lifget -f [-d] [-b] <image file> <filename> <output file>
lifget [-d] [-b] <input device> <filename>
lifget -f [-d] [-b] <image file> <filename>
(last 2 forms send the extracted file to standard output)
lifget -?
DESCRIPTION
lifget extracts a single file, specified by filename from a
physical LIF disk or LIF disk image. filename is
case-sensitive and should normally 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 linux
file that the LIF file is copied to. If only 2 arguments are
given then the file is copied to standard output.
OPTIONS
-f Extract a file from a LIF disk image file rather than
from a physical disk.
-d Prefix the output file by a 32-byte header consisting
of the directory record from the LIF disk directory.
-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.
-? Print a message giving the program usage to standard
error.
EXAMPLES
If disk1.lif is a LIF disk image containing a file called
TEST1 then
lifget -f disk1.lif TEST1 lif_test_file
will copy the file TEST1 from the LIF disk image to the
linux file lif_test_file.
Similarly
lifget /dev/fd1 PROG hp_program
will copy the file PROG from the physical LIF disk in
/dev/fd1 to the linux file hp_program.
REFERENCES
The LIF disk directory format is documented in the HP-IL
Interface Owners Manual for the with further details
(particularly HP41 and HP75 file types) in the HP-41
Synthetic Quick Reference Guide (Jeremy
BUGS
No attempt has been made to handle bad track replacements on
a LIF disk. Not all file types have been tested.
AUTHOR
lifget was written by Tony Duell, ard.p850ug1@gmail.com
and has been placed under the GNU Public License version 2.0