*********
* Lifls *
*********

Lifls is small command line tool to show the content of LIF image files,
especially for file types used by the HP-41, HP-71 and HP-75 calculators.
File types used by the Series 80 Personal Computer or the HP 9000 Series
are only shown as an integer number.

From my experiences it seem, that some file types using the same number
but have a different format depending which "software" created the data.
Actually File type -8160 (E020) is used by the "HP41 Extended IL ROM" for
CALC (verified) or by Series 80 for BASIC file content.

The LIF type names and the data size calculation were grabbed from various
sources. These various sources use different LIF type names and data size
calculations, so the result reflects my own flavor. My flavor could be
wrong.

The output was inspired by Tapani Tarvainen HP-71 program TAPECATB
available on Josef K. Horn Online-LIF-Disk-Project HORN/MAIN01.

The "S" column show the attributes and could contain:
- S for Secure
- P for Private
- A for Auto

Syntax: Lifls [-r -f -n -s -b] filename

Options are:
-r scan subdirectories
-f view full path filename before showing content
-n view filename before showing content
-s sort directory entry names in alphabetical order
-b view HP41 file size in bytes instead of registers

and where <filename> can be
- a single filename like foo.dat
- a filename with wild cards like *.dat
- a combination of path and filename like files\*.dat

Instead of using separate options like "-n -b" you could combine them to
"-nb" for example.

The output is send to the console. To get the output into a file you have
to redirect the output with the ">" character.

Example: Lifls -n files\*.dat > lifcontent.txt

(c) Christoph Giesselink, July 2026
