cut
Programm: cut
Schneidet Spalten aus Zeilen.
Aufruf
cut OPTION... [FILE]...
Beschreibung
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.
Optionen im Simulator
3 weitere Optionen des echten Programms, im Simulator noch nicht
Beispiele
cut -d, -f2 bestellungen.csv
stadt
Berlin
Hamburg
Berlin
Munich
Berlin
Hamburg
Berlin
Cologne
cut -d, -f1,3 bestellungen.csv
kunde,betrag
anna,120
ben,80
cem,45
dana,200
eva,60
finn,15
gina,300
hugo,95 Wo du ihn lernst
Lektionen
- Sortieren und zählen Linux-Grundlagen, Modul 3: Text-Werkzeuge