Search Results

Search: Posts Made By: charmmilein
4,987
Posted By bartus11
Put this in "script.awk": { if (FNR==1) file++ ...
Put this in "script.awk":
{ if (FNR==1) file++
for (i=1;i<=NF;i++) {
sum[FNR" "i]+=$i
count[FNR" "i]++
data[file" "FNR" "i]=$i
}
}END{
for (i=1;i<=FNR;i++) {
for...
4,067
Posted By bartus11
You have to specify the number of files in this...
You have to specify the number of files in this code (marked red):awk '{for (i=1;i<=NF;i++){if ($i!~"n/a"){a[FNR""i]+=$i}else{b[FNR""i]++}}}END{for (i=1;i<=FNR;i++){for (j=1;j<=NF;j++){printf...
Showing results 1 to 2 of 2

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