sed ‘1,10d’ file – doesn’t print the top 10 lines from the file
sed ‘5d’ myfile – delete 5th line from the file
sed ‘5,$d’ myfile – Delete 5 till end of file lines from myfile

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.