/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
gunzip {filename}.gz sort {filename} | uniq -c > {filename}_count awk '{if($1 > 3) { print $2 } }' {filename} > {filename}_file wc -l {filename} cat {filename} | awk -F : '{sum+=$5} END {print "AVG=",sum/NR}'