home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / hp / 14435 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.3 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mucs!lucs!rkl
  2. From: rkl@csc.liv.ac.uk (Richard Lloyd)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: pr -n <file doesn't work in HP-UX 9
  5. Keywords: pr 9.0
  6. Message-ID: <C02oDv.IH2@compsci.liverpool.ac.uk>
  7. Date: 30 Dec 92 12:37:07 GMT
  8. References: <1992Dec29.182002.12259@cbnewsh.cb.att.com>
  9. Sender: news@compsci.liverpool.ac.uk (News Eater)
  10. Organization: Computer Science, Liverpool University
  11. Lines: 24
  12. Nntp-Posting-Host: bobr.csc.liv.ac.uk
  13.  
  14. In article <1992Dec29.182002.12259@cbnewsh.cb.att.com>, gls@cbnewsh.cb.att.com (Col. G. L. Sicherman) writes:
  15. > Try [on HP-UX 9.0]
  16. >     pr -n < /etc/motd
  17.  
  18. For those of us without HP-UX 9.0 (i.e. everyone in the world except the US
  19. it seems), what exactly happens ??
  20.  
  21. BTW, for those wanting a "pr -n" replacement, try:
  22.  
  23. nl -ba -w5 filename | pr
  24.  
  25. You may be interested to know that this gives *identical* results to "pr -n" !!
  26.  
  27. > In System V clones, pr -n is the *only* simple way to get line
  28. > numbers. 
  29.  
  30. Not if you've got "nl" :-)
  31.  
  32. Richard K. Lloyd, 
  33. Computer Science Dept.,   JANET     : rkl@uk.ac.liverpool.compsci
  34. Liverpool University,     Internet  : rkl@csc.liv.ac.uk
  35. Merseyside, England,    Q: "What's the world's fastest home micro ?"
  36. Great Britain.          A: "The Archimedes A3000. 4 MIPS for under 800 pounds."
  37.