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
In reply to Re^2: extract (a range of) numbered lines from a file
by shmem
in thread extract (a range of) numbered lines from a file
by shmem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |