Painting Blue Code
Simple, self-explanatory code snippets.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment