Extract Numbered Lines from a File with sed
2015 September 22
Easy if you can ever remember the magic syntax:
sed -e 'AAA,BBB!d' file.txt
… where AAA and BBB are 1-based line numbers, and the range is treated inclusively.
Extract Numbered Lines from a File with sed
2015 September 22
Easy if you can ever remember the magic syntax:
sed -e 'AAA,BBB!d' file.txt
… where AAA and BBB are 1-based line numbers, and the range is treated inclusively.