Search Results

Search: Posts Made By: isildur1234
5,287
Posted By pamu
I think you have filed separator as tab then try ...
I think you have filed separator as tab then try

awk -F "\t" 'function print_data(){
for(i=1;i<=NF;i++){if(i%2){k=k?k"\t"P[s,i]:P[s,i]}else{p=sprintf("%.02f", P[s,i]/A[s]);k=k"\t"p}}print...
5,287
Posted By pamu
Try.... awk 'function print_data(){ ...
Try....

awk 'function print_data(){
for(i=1;i<=NF;i++){if(i%2){k=k?k"\t"P[s,i]:P[s,i]}else{p=sprintf("%.02f", P[s,i]/A[s]);k=k"\t"p}}print k;k="";
}
NR==1...
5,029
Posted By rdrtx1
try: awk ' { (FNR>m)? m=FNR:0; ...
try:
awk '
{
(FNR>m)? m=FNR:0;
f[FILENAME]++ ? 0:fc++;
a[fc-1,FNR]=$0;
}
END {
for (j=1;j<=m;j++) {
for (i=0;i<fc;i++) {
printf (a[i,j])? (a[i,j] "\t"):("\t\t");
}
...
Showing results 1 to 3 of 3

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