lifdir

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
FILE TYPES
EXAMPLES
REFERENCES
BUGS
AUTHOR

NAME

lifdir - print a directory of a LIF image file

SYNOPSIS

lifdir [-n] [-v l] [-p] <LIF image file>

lifdir -?

DESCRIPTION

lifdir reads the directory of a LIF image file and prints its directory to standard output.

If the volume label is non-blank, then this is printed first, followed by the date of formatting if this is valid. Each subsequent line contains the details of a single file, consisting of the file name, file type (see the FILE TYPE section below), the number of bytes in the file and the total number of bytes occupied by the blocks of that file, and finally the file time and date stamp if this is valid.

OPTIONS

-n

Print file names only

-v l

Verbosity level:

0: display file names only (same as -n)
1: default directory listing
2: extended directory listing including start sector, number of sectors occupied and implementation bytes

-c

output all directory information as csv (comma is delimiter):

File name
File type (alphanumeric)
File type code (numeric)
File length
Start block
Number of blocks
Date: year, month, day
Time: hour, minutes, seconds
Implementation bytes

Note: verbosity level and csv output options are mutually exclusive. All numeric information is decimal.

-p

Show directory info of 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.

FILE TYPES

lifdir should recognise all file types of the Online LIF Disk project.

Unknown file types are printed as a 4-digit hex number giving the value of the 2 file type bytes from the directory. See lif_dir_utils.c for details of the file types.

EXAMPLES

If disk1.dat is a LIF disk image file then

lifdir disk1.dat

will print a directory listing of that image file.

REFERENCES

The LIF disk directory format is documented in the HP-IL Interface Owners Manual for the HP-71 (Hewlett-Packard) with further details (particularly HP-41 and HP-75 file types) in the HP-41 Synthetic Quick Reference Guide (Jeremy Smith)

BUGS

Not all file types have been tested.

AUTHOR

lifdir was written by Tony Duell, ard@p850ug1.demon.co.uk and has been placed under the GNU Public License version 2.0