#158 Filtering content from files based on field value using awk
Request to print lines which has value in field #3 larger than 999:
awk -F":" '$3 > 999 ' /etc/passwd
Request to print lines which has value in field #3 smaller than 101:
awk -F":" '$3 < 101 ' /etc/passwd
Recent Comments