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. Required fields are marked *