Search Results

Search: Posts Made By: agiantz
2,011
Posted By ctsgnb
awk '{i=1;A[FNR":"i]=$1 do...
awk '{i=1;A[FNR":"i]=$1
do {x=FNR":"(++i)
A[x]+=$i
}while(i<NF)
}END{f=1;do {
k=1;do{
y=(y?y OFS:z) A[f":"k]
}while(++k<=NF)
...
2,011
Posted By bartus11
Try this little Perl script: #!/usr/bin/perl ...
Try this little Perl script: #!/usr/bin/perl
chomp(@files=`find . -name "out.dat"`);
for $f (@files){
open F, "$f";
chomp(@rows=<F>);
for $r (0..$#rows){
@cells=split / /,$rows[$r];
...
Showing results 1 to 2 of 2

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