[Ilugc] viewing specific lines of file

  • From: knutties@xxxxxxxxx (Natarajan K)
  • Date: Wed Jul 27 13:25:48 2005

On 7/27/05, carti <carti@xxxxxxxxxxxxxx> wrote:

Say for example, I want to view line numbers
27 to 39 of file file.txt.


Is there any command to do that.? I do not like
to use sed or awk or any editors like vi.
You better like sed atleast for this requirement of yours. It does
exactly what you want.

$ sed -n 27,39p <file>

Natarajan
-- 
http://puggy.symonds.net/~natarajan

Other related posts: