May 032010
How to print a file by line range using sed?
Answer:
In a given file, if you want to print out, say line 340-350, is easy with sed:
# sed -n '340,350p' text.txt
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to print a file by line range using sed?
Answer:
In a given file, if you want to print out, say line 340-350, is easy with sed:
# sed -n '340,350p' text.txt