catnumb

Catnumb is a perl program that can be used to list text files. I would often want to 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 ~]$


Catnumb has several options:
Program name: catnumb version: 1.0.0.0
Usage: catnumb [-hntv] [filename]

Description: This program will generate a listing of another file on the
             standard output. Default will generate a listing with line
             numbers. If no file name is specified it will prompt for the
             file name to be listed.
Options:
-h Help menu (this menu)
-n Do not print numbers
-t Print only 15 lines at a time
-v Print the version number

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.


Website Validations   Valid XHTML 1.0 Transitional   Valid CSS!   apache   fedora   zoneedit