# print every line after replacing each field with its absolute value


/ Published in: Bash
Save to your folder(s)



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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.