Belajar Sendiri

Commands

cut -d<sep> -f<N>

cut -d<sep> -f<N> [file]

Risk: Safe

What it does

Keeps only some columns of each line.

When to use it

To pick one field out of a log line.

Example

$ cut -d" " -f3 orders.log

Just the dish name from each order.