Linux – cut

Linux cut command The Linux cut command is a text processing command. This command is used to extract the specific column from a file. You need to define the column number and column delimiter with command. Syntax: cut -d<delemeter> -f<field1,field2,…> filename -d This defines the deleter as coloumn seprator. Defaut column seprater is single space or tab. -f Specify fields (column numbers) to fetch. Example Grep all usernames with there home directory created on a Linux system. The /etc/passwd file contained all users on a Linux system with other details.…

Read More