Re:Getting Unique Counts From a Log File
by casca on Saturday June 22, 2013 @09:17PM
(#5925866)
I've done this for single-use pipelines when built up because the nature of the data is unfamiliar. It usually starts with
cat file | less
and then
cat file | grep bar | less
and then
cat file | grep bar | awk '{ print $1 }' | less
and so on.
But if it's going to be used more than once then it does seem odd to have the unnecessary commands. Maybe "advanced" awk (beyond print $1) is unknown to people?
ie..
which can simply beBut if it's going to be used more than once then it does seem odd to have the unnecessary commands. Maybe "advanced" awk (beyond print $1) is unknown to people?
That being said, point well made.
http://en.wikibooks.org/wiki/Ad_Hoc_Data_Analysis_From_The_U...