Hi all,
I have the following script to read the second columns of each line and printing those columns to the separate files such as 1.txt, 2.txt etc.
value = 1;
BEGIN { RS = "\n" } ;
{
while(getline > 0){
filename = (value ".txt");
print $2 >> filename...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.