Nov 5, 2017

Linux cut command example: Select a Specific Field from a File

Select a Specific Field from a File

If you like to extract a whole field, you can combine option -f and -d. The option -f specifies which field you want to extract, and the option -d specifies what is the field delimiter that is used in the input file.
cut -d: -f1 /etc/group