Command to extract text between 2 line numbers from a file
sed -n 12196, 12765p weblog.txt > extract.txt
12916 is the first line number from which the text has to be extracted
12765 is the last line that needs to be extracted
p - append p with the last line number
No comments:
Post a Comment