Hello,
I am doing something that must be pretty basic in awk: I would like to select all lines from a file in which the second field is a given number, ie 30 (the day of the month):
Code:
$ cat /var/log/messages | awk '{$2 ~/30/; print $0}'
This doesn't work. What am I missing?