Sep
20th
Tue
20th
tip: awk
check if a variable is numeric in awk func isnum(x) {return x==x+0} http://bit.ly/pTDTXW
check if a variable is numeric in awk func isnum(x) {return x==x+0} http://bit.ly/pTDTXW
use awk -v var=$bashvar to pass bash variables to awk scripts http://bit.ly/c4vjLc
nice 3 part series from gentoo, “awk by example” http://bit.ly/98jiD5
to use multiple characters as field separators use a regular expression, e.g. awk -F”[]” for http://bit.ly/cibp1l
to print all lines where, e.g., the second field matches a regex use awk ‘$2 ~ /regex/’ http://bit.ly/BVnN