Skip to content
skillbld
Linux Command Line · 14-day planAll days
Day 7 of 14 35 min

Slice, sort, count and transform text from the command line. Learn sort, uniq, cut, tr, sed and awk, combine them into pipelines that answer real questions about logs and CSV files, and know when to reach for jq or a real programming language.

By the end of today you can

  • Sort lines alphabetically, numerically and by a column
  • Count and remove duplicates with uniq
  • Pick out columns with cut and change characters with tr
  • Find and replace with sed
  • Filter and total columns with awk

What's inside

  • 7 sections
  • 2 diagrams and mind maps
  • 9 code examples you can run
  • 5-question quiz
  1. 1sort
  2. 2uniq: duplicates and counts
  3. 3cut: pick columns
  4. 4tr: translate characters
  5. 5sed: find and replace
  6. 6awk: columns, conditions and totals
  7. 7Putting it together

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free

Keep going

Day 7: Text Power Tools · Linux Command Line · SkillBld