Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Extracting data out of a huge text file
- head -n 532541 big-file > first-bit
- awk 'NR<=532541' big > small
- awk '{if(NR<=532541) print; else exit}' big > small #if the file is really huge
- sed -n '1,532541p' big > small
- sed '1,532541!d' big > small
- sed '532542,$d' big > small
- sed '532541q' big > small
- awk '{print} NR==532541 {exit}' big > small
Add Comment
Please, Sign In to add comment