nawk
Created to parse HAProxy log for graphing
grep'd out the page requests of interest, then parsed the file to graph in Open Office
awk '{fu=gsub("/"," ",$9); print substr($1,6)" "$2" "$3" "$9" "$14" "$15" "substr($17,2)" "$18}' someTextFile.txt
fu=gsub("/"," ",$9) turns "3/4/5/6/7" into "3 4 5 6 7"
grep'd out the page requests of interest, then parsed the file to graph in Open Office
awk '{fu=gsub("/"," ",$9); print substr($1,6)" "$2" "$3" "$9" "$14" "$15" "substr($17,2)" "$18}' someTextFile.txt
fu=gsub("/"," ",$9) turns "3/4/5/6/7" into "3 4 5 6 7"
Comments