Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!convex.COM From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.questions Subject: Re: How to add line numbers to a text file? Message-ID: <109630@convex.convex.com> Date: 30 Nov 90 22:55:51 GMT References: <6826@uceng.UC.EDU> Sender: news@convex.com Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 6 cat -n < infile > outfile you could also use grep -n, sed, awk, or perl, with only slightly more complexity. --tom