Search Results

Search: Posts Made By: MetaBolic0
2,215
Posted By Scrutinizer
That script always prints the last line (and in...
That script always prints the last line (and in some awks it prints an empty line). Try:
awk '{if ($4 > max) {max=$4; maxline=$0}} END {print maxline}' infile
This works is the clusters are in...
2,022
Posted By
#!/usr/bin/perl -w ...
#!/usr/bin/perl -w
...
4,711
Posted By vgersh99
my bad - sorry: awk 'NF...
my bad - sorry:

awk 'NF {s=0;for(i=1;i<=NF;i++) s+=$i;printf("%.1f\n", s/NF)}' myFile
Showing results 1 to 3 of 3

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