how to program in shell to get a part of a file by line number
Hello everyone,
I am wondering how to program in shell to get a part of a file by indicated (input) line number, for example, get from line 100 to line 200 in a specific file. What command(s) should I use? thanks in advance, George |
sed -n '100,200p' inputfile
|
Quote:
Thank you matthewg42! It works! regards, George |
All times are GMT -5. The time now is 03:03 PM. |