cut
Program: cut
Cuts columns out of lines.
Usage
cut OPTION... [FILE]...
Description
Keep only the chosen bytes or fields of every line. LIST is N, N-M, N- or -M, several joined with commas; counting starts at 1. A FILE named -, or no FILE, means the keyboard or pipe.
Options in the simulator
3 more options of the real program, not in the simulator yet
Examples
cut -d, -f2 orders.csv
city
Berlin
Hamburg
Berlin
Munich
Berlin
Hamburg
Berlin
Cologne
cut -d, -f1,3 orders.csv
customer,amount
anna,120
ben,80
cem,45
dana,200
eva,60
finn,15
gina,300
hugo,95 Where you learn it
Lessons
- Sort and count Linux Basics, Module 3: Text tools