Question: The cut command is used to cut columns from files separated by a delimiter. A delimiter is a character that is used to separate fields.

The cut command is used to cut columns from files separated by a delimiter. A delimiter is a character that is
used to separate fields. Notice in the list file created in task 20 that each field (column) the first 4 lines are
separated by a %. In lines 5 through 8 each field is separated by a *.
To display only the 2 field for the first 4 lines using the delimiter %, use the following command:
cut -d%-f2 list.txt
cut - the command
-d - delimiter. each field (column) is separated by the % character.
-f - field. display the second (2) field.
Explain why this command only worked for the first 4 lines and not for lines 5-8.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!