Search Results

Search: Posts Made By: kam66
9,028
Posted By rdcwayx
awk 'BEGIN{i=1;t=0} {if (NR%500000==0)...
awk 'BEGIN{i=1;t=0} {if (NR%500000==0) {t=1;a=int($2)} else {if (t==1&&int($2)!=a){t=0;++i}} {print > "file" i}}' infile
9,028
Posted By guruprasadpr
Hi Try this: awk '{x=$2;gsub(" ", "",...
Hi

Try this:

awk '{x=$2;gsub(" ", "", x);print >x}' FS=, file


The output files generated will be like 100,200, so on.
Guru
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy