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