Skip to content

Commit c6295fe

Browse files
authored
Clarify cut command (#1496)
#1144
1 parent 5d13402 commit c6295fe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

episodes/04-pipefilter.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,12 @@ For the file `animals.csv` from the previous exercise, consider the following co
549549
$ cut -d , -f 2 animals.csv
550550
```
551551

552-
The `cut` command is used to remove or 'cut out' certain sections of each line in the file,
553-
and `cut` expects the lines to be separated into columns by a <kbd>Tab</kbd> character.
554-
A character used in this way is called a **delimiter**.
555-
In the example above we use the `-d` option to specify the comma as our delimiter character.
552+
The `cut` command is used to select or 'cut out' certain sections of each line in the file for
553+
further processing while leaving the original file unchanged.
554+
By default, `cut` expects the lines to be separated into columns by a <kbd>Tab</kbd> character.
555+
A character used in this way is called a **delimiter**.
556+
In the example above we use the `-d` option to specify the comma as our delimiter character
557+
instead of <kbd>Tab</kbd>.
556558
We have also used the `-f` option to specify that we want to extract the second field (column).
557559
This gives the following output:
558560

0 commit comments

Comments
 (0)