awk ’/REGEX/ {print NR “ $9” $4”_“
you can use awk also in pipes:
ll | awk ‘NR!=1 {s+=$5} END {print “Average:” s/(NR-1)}’
END to process al file and then print results
tutorial on using awk from the command line:
http://www.vectorsite.net/tsawk_3.html#m1