Combining and Sorting Output with sort, uniq, and cut
Learn to reshape and summarize streamed text by sorting lines, removing duplicates, and extracting fields with sort, uniq, and cut.
Why sort, uniq, and cut Matter
Filtering with grep and editing with sed/awk gets you far, but real pipelines often need to reorder, deduplicate, and slice columns of text.
sortorders linesuniqcollapses duplicatescutextracts fields
Together they turn raw streams into clean summaries.
Basic Sorting
sort reads lines and prints them in lexical order by default. It works great inside a pipe.
printf 'banana\napple\ncherry\n' | sortAll lessons in this course
- Standard Streams and Redirection
- Filtering Text with `grep`
- Text Manipulation with `sed` and `awk`
- Combining and Sorting Output with sort, uniq, and cut