bash - Separating merge file into different file -
i have list of files in have text sorted according labels. 1 of labels a
, other a=x
.
for example this
a qmax3427 a=x qmax567897
now want make 2 different files 1 a
, 1 a=x
contents
this can done grep grep -w > output.txt
.
is there other option?
awk 'nr%2{o=$0;next}{print > o}' file
Comments
Post a Comment