Search Results

Search: Posts Made By: TAlcock
1,926
Posted By Corona688
If your input is tab-separated: awk -F"\t" '{...
If your input is tab-separated:
awk -F"\t" '{ if(NF>M) M=NF; for(N=1; N<=NF; N++) if($N) D[N,++C[N]]=$N } END { for(N=1; N<=M; N++) for(X=1; X<=C[N]; X++) print D[N,X] }' inputfile > outputfile
Showing results 1 to 1 of 1

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