izeye
Thursday, July 7, 2016
How to extract a range of lines in a text file to another file in Linux
To extract a range of lines in a text file to another file in Linux, use the following command:
sed -n '1000,2000p' some.log > new.log
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment