Cut, translate, replace
Lesson 15 of 20 · Term.Micro
cut, tr and sed reshape text on the fly.
-d, says the separator is a comma and -f2,4 keeps fields 2 and 4. For space-separated logs use -d' '.
Check yourself
Which command keeps only the 3rd column of a CSV?
Do it in the browser: a real the Linux terminal tool, a short mission and instant feedback. No install.
Start this lesson — free