home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 12991 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.5 KB  |  40 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!europa.asd.contel.com!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!aun.uninett.no!ugle.unit.no!humpty.edb.tih.no!bjornw
  3. From: bjornw@edb.tih.no (Bjoern Wennberg)
  4. Subject: Re: Where's head?!
  5. Message-ID: <1992Nov05.110933.9390@edb.tih.no>
  6. Sender: newsadm@edb.tih.no (News Administrator)
  7. Nntp-Posting-Host: viper.edb.tih.no
  8. Organization: Trondheim College of Engineering, CS-Dept.
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. References: <NICKEL.92Nov3191635@desaster.cs.tu-berlin.de>
  11. Date: Thu, 05 Nov 1992 11:09:33 GMT
  12. Lines: 26
  13.  
  14. Juergen Nickelsen (nickel@cs.tu-berlin.de) wrote:
  15. : In article <chupchup.720790402@piggy> chupchup@ferkel.ucsb.edu (Robert
  16. : Earl) writes:
  17. : > jamesm@procor.dialogic.com (Mark James) writes:
  18. : > 
  19. : > |                                                   Is there some
  20. : > | hidden functionality in another command that will print out the
  21. : > | first n lines of a file?  Surely I won't have to write my own
  22. : > | head.c?
  23. : > 
  24. : > How about "sed 10q file"?
  25. : That is the right way, but not yet everything, of course. I once wrote
  26. : an sed-based head script for System V (the very Interactive variety,
  27. : indeed). It mimicks the head(1) program as described in the SunOS
  28. : manual page.
  29. : I think it is small enough to post it in comp.unix.questions, but
  30. : alt.sources has to have its share, too. :-)
  31.  
  32. You could also get the fileutils from GNU which has an implementasion
  33. of head/tail and stuff.
  34.  
  35. bjornw>
  36.