How to add line numbers to a text file?
Tom Christiansen
tchrist at convex.COM
Sat Dec 1 09:55:51 AEST 1990
cat -n < infile > outfile
you could also use grep -n, sed, awk, or perl, with only slightly
more complexity.
--tom
More information about the Comp.unix.questions
mailing list