Extract Data From Log File Using Awk

Extract Data From Log File Using Awk

Just for self reference, to scan through all the files which contains number “412” in column 10 and write whole line into a tmp file:

cat `ls` | awk '$10==412 { print $0 }' >>/tmp/log_412_activity.txt

Leave a Reply

Your email address will not be published.

My new Snowflake Blog is now live. I will not be updating this blog anymore but will continue with new contents in the Snowflake world!