Training path

Text Processing

Find, slice, reshape and count text like a professional: grep, sort, uniq, cut, sed, awk and the pipelines that tie them together.

Your lab machineLive

Ubuntu 24.04 with sudo (root) access, next to every lesson.

learner@linux-server:~$ cut -d, -f2 ~/data/sales.csv | sort -u

learner@linux-server:~$ grep -oE '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+' ~/data/notes.txt

learner@linux-server:~$ awk -F, 'NR>1 {s+=$3} END {print s}' ~/data/sales.csv

What you'll learn

Every lesson answers questions about real files on a Linux machine of your own: a CSV of sales, a file of notes, a server log. You slice columns with cut, search with grep and regular expressions, edit streams with sed, sum and filter with awk, then chain it all into pipelines that answer a question in one line.

Core skills

  • ✓Lines and fields: wc, cut and sort
  • ✓grep with flags and regular expressions
  • ✓sed: find, replace and delete on a stream
  • ✓awk: fields, patterns and sums
  • ✓Pipes, tee and xargs

Advanced topics

  • ✓In-place editing with sed -i
  • ✓Counting and ranking with sort | uniq -c
  • ✓Editing files with sed -i.bak
  • ✓Reading a server log with one-liners

Course modules

  1. 01

    Text as data

    Everything is lines: count them with wc, slice columns with cut, and sort them.

    45 min
  2. 02

    grep, properly

    Patterns, flags and regular expressions: pull out exactly the lines — or pieces of lines — you want.

    45 min
  3. 03

    sed: edit the stream

    Find and replace, delete and filter lines, without opening an editor.

    45 min
  4. 04

    awk: columns with logic

    Fields, patterns, sums and tiny programs: awk is a whole language in one line.

    45-60 min
  5. 05

    Pipelines

    Chain tools with pipes, tee, xargs and command substitution, and answer a question in one line.

    45 min
  6. 06

    Capstone: read a server log

    One server log, four questions, four one-liners: put the whole toolbox to work.

    45 min

Prerequisites

Linux command-line basics and the pipe (our Linux course covers both).

What's included

  • •6 hands-on chapters
  • •A Linux machine of your own for every lesson, nothing to install
  • •Tasks checked on your machine with "Check my work"

Who it's for

  • •Anyone who lives in log files and CSV exports
  • •Developers building their first data one-liners
  • •Admins who need answers from a server, fast

By the end, you'll be able to

  • •Count, slice and sort text precisely
  • •Pull exact lines — or pieces of lines — with grep
  • •Edit files and streams with sed
  • •Sum, filter and format with awk
  • •Chain tools into pipelines that answer real questions

Course format

  • •Self-paced online learning
  • •Lifetime access to course materials
  • •Regular content updates
  • •Community forum access

Support

  • •Email support from instructors
  • •Q&A sessions (monthly)
  • •Peer community support
  • •Course completion certificate

Course investment

Contact for pricing

Flexible payment options available

Ready to slice text?

Open your machine and answer your first question with one line.