View some lines in a file
Tagged with: command, file, line, Linux, sed
View from 1th to 5th line
sed -n '1,5p;5q' example.txt
View from 1th to 5th line
sed -n '1,5p;5q' example.txt
This entry was posted on Tuesday, April 22nd, 2008 at 10:56 pm and is filed under Command Line, Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.