How can I extract a predetermined range of lines from a text file on Unix?
sed -n ‘16224,16482p;16483q’ filename > newfile From the sed manual: p – Print out the pattern space (to the standard output). This command is usually only used in conjunction with the -n command-line option. n – If auto-print is not disabled, print the pattern space, then, regardless, replace the pattern space with the next line … Read more