Friday, 3 February 2012

AWk command to cut a big file into small files at a repeatative word

awk '/selected./{n++}{print >"out" n ".txt" }' partitionbased_cc_acc_ids.txt

here "selected." is the repeatative word..

No comments:

Post a Comment