streak 0d sign in / up

Text-Fu · Lesson 6 of 16

cut

0%

0 / 5 checkpoints answered

Virtual Machine Standing by
✓ Setting up Virtual Machine…
✓ Initializing Virtual Machine…
✓ Starting Desktop Services…
✓ Connecting to Interface…

Click inside the terminal, type the command, press Enter.

The cut command selects specified character positions or fields from each input line. It works best with consistently structured text whose delimiters and field positions are known.

Create a small tab-separated file for the examples. printf interprets \t as a literal tab and \n as a newline:

$ printf 'name\trole\nalice\tadmin\nbob\tviewer\n' > team.tsv