awk -F, '$6==10' | awk | available shells /etc/shells

Show rows in the CSV file which column =6 have value = 10
gzcat filename.csv.gz | awk -F, '$6==10'

------------------------------------------------
The following program searches the system password file and prints the entries for users whose full name is not indicated:
awk -F: '$5 == ""' /etc/passwd
------------------------------------------------
awk -F: '{print $4}'
  • awk - this is the interpreter for the AWK Programming Language. The AWK language is useful for manipulation of data files, text retrieval and processing
  • -F <value> - tells awk what field separator to use. In your case, -F: means that the separator is : (colon).
  • '{print $4}' means print the fourth field (the fields being separated by :).

------------------------------------------------
cat ds | awk '{print$1,$2}'

----------------------

type cat /etc/shells to see a list of available shells

Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all