02-19-2006, 01:21 AM
How about combining both 'head' and 'tail'?
To extract the 100th line
head -n 100 thefilename.txt | tail -n 1
To extract the 100th line
head -n 100 thefilename.txt | tail -n 1
UNIX Command Question- How do I just extract line 'X'
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
UNIX Command Question- How do I just extract line 'X' - by microchip13 - 02-19-2006, 12:18 AM
Re: UNIX Command Question- How do I just extract line 'X' - by hwystar - 02-19-2006, 12:58 AM
Re: UNIX Command Question- How do I just extract line 'X' - by microchip13 - 02-19-2006, 12:59 AM
Re: UNIX Command Question- How do I just extract line 'X' - by blooz - 02-19-2006, 01:08 AM
Re: UNIX Command Question- How do I just extract line 'X' - by TheTominator - 02-19-2006, 01:21 AM
Re: UNIX Command Question- How do I just extract line 'X' - by pdale - 02-19-2006, 08:39 PM
|