‫Of course, there are many utilities available in Linux and Unix systems that allow you to process and
‫filter text files.
‫Cut is a command line utility that allows you to cut parts of lines from specified files or piped data,
‫and print the result to standard output so it can be used to cut parts of a line by delimiter, byte
‫position and character.
‫Dash RF is the parameter used to select only specified fields with a dash parameter D limiters used
‫to cut data.
‫So let's see how it works.
‫Go to Kelly and the most common file to understand the usage of the cut command, I think, is slash
‫ETSI slash password.
‫So let's view the contents of this file again.
‫As you can see, each data is separated by a colon, so that means that we can use the colon as a delimiter.
‫Let's get the first fields of each line with the Dash F1 parameter.
‫OK, so this error is caused by the slash, because password is a file, not a directory, so don't
‫use a slash at the end of the file.
‫Now, let's delete it and run the command again.
‫OK.
‫See how that works.
‫We get the first fields of each row.
‫So let's change the field numbers.
‫You can select multiple fields just using a comma.
‫And sure enough, we'll get the third and fourth fields of each row in the file.
‫The first numbers are user IDs.
‫The second numbers are the group IDs of the users.