Created
November 2, 2012 00:57
-
-
Save gwenshap/3997968 to your computer and use it in GitHub Desktop.
Split a file using AWK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nohup awk 'BEGIN{RS="\t\t\n"; FS="\t";}NR%300000==1{x="cc_unl_"++i;}{print > x}' ../catalog_caption.unl & |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
awk 'BEGIN{RS="\f\f\n"; FS="\t";ORS="\f\f\n"}NR%300000==1{x="cc_unl_"++i;}{print > x}'