Hi All,
[LEFT]Input.txt
XYZONEABC
CZXTWOJJJ
KKKSIXOOO
asdfhajlsdhfajs
asdfasfasdf
[LEFT]Output Files:
ONE.txt
XYZONEABC
TWO.txt
CZXTWOJJJ
SIX.txt
KKKSIXOOO
[LEFT]I had a script
File.awk
awk '!/^$/{
a=substr($0,3,3)
print $0 > a".txt"
}' Input.txt
[LEFT]above script will use the substr and split the data accordingly..
I need to fetch only ONE,TWO,SIX records and i need to get only three files(ONE.txt, TWO.txt, SIX.txt) always i need to fetch these files only on every run i need to ignore other records..[/LEFT]
Thanks
[/FONT][/FONT]