in reply to Re: extract (a range of) numbered lines from a file
in thread extract (a range of) numbered lines from a file
somefile shouldn't be there, right?
Right. And I completely forgot about -n which eliminates the call to awk ;-) So all that's necesary is:
sed -ne '10,15p;5p' file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: extract (a range of) numbered lines from a file
by choroba (Cardinal) on Sep 21, 2016 at 18:31 UTC | |
by shmem (Chancellor) on Sep 21, 2016 at 18:53 UTC | |
by choroba (Cardinal) on Sep 21, 2016 at 19:32 UTC | |
by shmem (Chancellor) on Sep 21, 2016 at 19:40 UTC |