catnumb
Catnumb is a perl program that can be used to list text files. I would often want to have a file listing that would identify where information was within the file. The simple "cat" in unix and "list" in dos/windows would list the file but I would also often want the line number. Catnumb resolves that by placing the line number and a bar ( | ) before each line. Example:
| Listing using "cat" | Listing using "catnumb" |
| [user@localhost ~]$ cat doc.txt This is line one of a sample text file. This is line 2. line line line This is the last line of the document. [user@localhost ~]$ |
[user@localhost ~]$ catnumb doc.txt Listing for doc.txt --------------- 1 | This is line one of a sample text file. 2 | This is line 2. 3 | line 4 | line 5 | line 6 | This is the last line of the document. --------------- Listing of doc.txt done. 6 total lines. [user@localhost ~]$ |
| --help | Help menu (this menu) | |
| -h | Help menu (this menu) | |
| -l # | Print only # lines at a time (overides [-t]) | |
| -n | Do not print numbers | |
| -t | Print only 10 lines at a time | |
| -v | Print the version number and exit |
Catnumb is written in PERL and can be used on any operating system
(Linux, Windows, Apple OS) that has PERL installed. You can click on
the link below and get a listing of catnumb or right click and save
the file. Once you have a copy of catnumb on your system you will need
to make it executible and place it into a default path such as
/usr/bin/ on linux system.
Click Here to download catnumb.