I know that you can use sedto get the nth line of a text file as follows:
sed -n '30p' foo.txt
will output the 30th line foo.txt
However, suppose I'm interested in 30, 39, 43 lines from foo.txt? Is there a way to tie this together in sed?
Thank.
source
share