Text-Fu

Learn basic text manipulation and navigation.

0 of 16 lessons complete

Practice in terminal (Ubuntu sandbox) ↗

Syllabus

  1. 01 stdout (Standard Out) Learn how standard output flows to the terminal and how Bash redirects it to files.
  2. 02 stdin (Standard In) Learn how programs read standard input and how Bash connects that stream to a file.
  3. 03 stderr (Standard Error) Learn how to redirect standard error separately or combine it with standard output in Bash.
  4. 04 pipe and tee Learn how pipelines connect commands and how tee saves a stream while passing it onward.
  5. 05 env (Environment) Learn how Bash expands, exports, inspects, and temporarily overrides environment variables.
  6. 06 cut Learn how to select character positions or delimited fields from each line with cut.
  7. 07 paste Learn how to merge corresponding lines or serialize lines with configurable delimiters using paste.
  8. 08 head Learn how to display a controlled number of lines or bytes from the beginning of input.
  9. 09 tail Learn how to view the end of input and follow files as new content is appended.
  10. 10 expand and unexpand Learn how tab stops control conversion between tabs and spaces with expand and unexpand.
  11. 11 join and split Learn how to join two sorted text files by a key and split one file into named pieces.
  12. 12 sort Learn how to order text lines by lexical, numeric, or selected field values with sort.
  13. 13 tr (Translate) Learn how to translate, delete, and squeeze character sets in a standard input stream.
  14. 14 uniq (Unique) Learn how to collapse, count, or filter adjacent groups of equal lines with uniq.
  15. 15 wc and nl Learn how to count lines, words, bytes, or characters with wc and number lines with nl.
  16. 16 grep Learn how to select lines with fixed strings or regular expressions and interpret grep results.

Frequently Asked Questions

What will I learn in Text-Fu?

You will learn to search, filter, transform, combine, and redirect text with tools such as grep, cut, sort, uniq, tr, head, tail, and tee.

Should I complete the Command Line course first?

Yes. Familiarity with files, directories, and basic shell commands will make the text-processing examples easier to understand.

Why are pipes and redirection important?

They let you connect small commands into repeatable workflows, control input and output, and process data without opening a graphical editor.