Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!samsung!uunet!pdn!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.unix.questions Subject: Re: How to add line numbers to a text file? Message-ID: <275A89B4.3B25@tct.uucp> Date: 3 Dec 90 17:21:56 GMT References: <6826@uceng.UC.EDU> <15248:Nov3018:01:4490@kramden.acf.nyu.edu> Organization: Teltronics/TCT, Sarasota, FL Lines: 8 For line numbering, the SVID includes a little-known, seldom-used utility called "nl" (number lines). For interactive or short-lived scripts, I use "nl -ba" for line numbering. Otherwise, I tend to write a Perl script to do the whole job. :-) -- Chip Salzenberg at Teltronics/TCT , "I'm really sorry I feel this need to insult some people..." -- John F. Haugh II (He thinks HE'S sorry?)