Awk

From Vague Hope Wiki
Revision as of 05:27, 15 February 2016 by Haku (Talk | contribs) (Created page with " awk -F'"' '{print $3}' awk '{print $4 "|" $5}' awk 'BEGIN { FS = "|" } ; { print $10 }' awk '{total += $1; count++} END { print total/count } END {print count}' awk -F'|'...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
awk -F'"' '{print $3}'
awk '{print $4 "|" $5}'
awk 'BEGIN { FS = "|" } ; { print $10 }'
awk '{total += $1; count++} END { print total/count } END {print count}'
awk -F'|' '{printf "%s,%s\n", $1,$12}'
awk -F, '{print ((substr($1,15,2) * 60) + substr($1,18,2)) "," $2}'
awk '{sub(/\/$/, "") ; print $1}'