I have a 100 line text file. I want to extract lines 50 to 70 inclusive. How can I do this? My Google skills are failing me and man cut doesn't seem to have the answer - perhaps I need a different tool.
Asked
Active
Viewed 578 times
1
Richard
- 3,273
- 5
- 15
- 13
-
1`awk 'NR>=50 && NR<=70' file` have a look at https://unix.stackexchange.com/questions/89640/how-to-run-awk-for-some-number-of-lines – binarysta Jun 06 '20 at 14:18
-
why don't you use head and tail combination ? – dev Jun 06 '20 at 16:53