home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- 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
- From: bjornw@edb.tih.no (Bjoern Wennberg)
- Subject: Re: Where's head?!
- Message-ID: <1992Nov05.110933.9390@edb.tih.no>
- Sender: newsadm@edb.tih.no (News Administrator)
- Nntp-Posting-Host: viper.edb.tih.no
- Organization: Trondheim College of Engineering, CS-Dept.
- X-Newsreader: TIN [version 1.1 PL6]
- References: <NICKEL.92Nov3191635@desaster.cs.tu-berlin.de>
- Date: Thu, 05 Nov 1992 11:09:33 GMT
- Lines: 26
-
- Juergen Nickelsen (nickel@cs.tu-berlin.de) wrote:
- : In article <chupchup.720790402@piggy> chupchup@ferkel.ucsb.edu (Robert
- : Earl) writes:
- :
- : > jamesm@procor.dialogic.com (Mark James) writes:
- : >
- : > | Is there some
- : > | hidden functionality in another command that will print out the
- : > | first n lines of a file? Surely I won't have to write my own
- : > | head.c?
- : >
- : > How about "sed 10q file"?
- :
- : That is the right way, but not yet everything, of course. I once wrote
- : an sed-based head script for System V (the very Interactive variety,
- : indeed). It mimicks the head(1) program as described in the SunOS
- : manual page.
- :
- : I think it is small enough to post it in comp.unix.questions, but
- : alt.sources has to have its share, too. :-)
- :
-
- You could also get the fileutils from GNU which has an implementasion
- of head/tail and stuff.
-
- bjornw>
-