awk one liner

AWK
splitting a file on a pattern and naming the output files:

awk '/ENDMDL/{i++}{print > "file.pdb."i}' file

Comments

0 Responses to "awk one liner"

Post a Comment