Re: how to implement tail or head command ?
- From: Chris McDonald <chris@xxxxxxxxxxxxxxx>
- Date: Mon, 24 Oct 2005 21:31:24 +0000 (UTC)
"maadhuu" <madhu_ranjan_m@xxxxxxxxx> writes:
>hello ,
>I am writing a mini shell and I want to implement the tail and head
>command . How it works is , it takes a file as input ,and by default
>"head" will display the 1st 10 lines of the file and tail will display
>the last 10 lines . Any ideas as to how to read say, some k lines from a
>file ?
Hello Maadhuu,
I'm concerned that your primary goal is to write a mini-shell which,
itself, is a relatively difficult task compared to the difficulty of
the questions you're asking. Good luck, you'll certainly learn a lot
through such projects!
--
Chris.
.
- References:
- how to implement tail or head command ?
- From: maadhuu
- how to implement tail or head command ?
- Prev by Date: Re: Java or C++?
- Next by Date: Re: Java or C++?
- Previous by thread: Re: how to implement tail or head command ?
- Next by thread: CAsyncSocket and email
- Index(es):
Relevant Pages
|