Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UNIX Command Question- How do I just extract line 'X'
#5
How about combining both 'head' and 'tail'?

To extract the 100th line

head -n 100 thefilename.txt | tail -n 1

Reply


Messages In This Thread
Re: UNIX Command Question- How do I just extract line 'X' - by TheTominator - 02-19-2006, 01:21 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)