2015-08-23

MacOS - How to split a file for a given row number range

cat LARGE_FILE_NAME.TXT | awk 'NR >= 999  && NR <= 1500 { print }' > SMALLER_FILE_NAME.TXT

PS. Where 999 is the line to start with, and 1500 the last line you want.

No comments:

Post a Comment