Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: itsjoy2u
1,962
Posted By madanlee
if you want print the last 100 line in the file ...
if you want print the last 100 line in the file

head <filename>|tail -100

you want to print 100th -200th line of the file then you can use

head -200| <filename>|tail -100

i hope...
1,962
Posted By ahamed101
sed -n '200,300 p' input_file > output_file ...
sed -n '200,300 p' input_file > output_file


--ahamed
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 10:23 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy