Grep
queries/extracts rows that contain specific keywords from the data file.
Sed
Used primarily for substitution processing of specific strings in a data file.
Cut
Cuts the contents of the selected column (-F num) or the character (-c) by the specified delimiter (-D).
Awk
Often used to display only specific fields, or to rearrange the order of fields in a row.
Join
A file used to combine fields with a common key value in a record.
---------------------------------------------------------------I'm a split line----------------------------------------------------- -----------------
The following two effects are the same
awk ' {print $} ' /etc/passwdcut1 /etc/passwd
Change the space between awk default two fields as * * * *
awk -F:-v'ofs=*****'{print $,$/etc/ } ' passwd
awk Prints the last field
awk ' {print $NF} ' /etc/passwd
Awk can not only print the selected fields
awk ' {print "User", $, "is using this shell", $NF} ' /etc/passwd
Grep,sed,cut,awk,join Personality features