Menu
Coddy logo textTech

Recap - Data Pipeline

Part of the Fundamentals section of Coddy's Terminal journey — lesson 47 of 82.

challenge icon

Challenge

Easy

The file sales.txt contains product sales records in the format category:item:price. Build a complete data pipeline to find how many unique products were sold in the electronics category.

Run a single command that:

  • Uses cat to read sales.txt
  • Pipes to grep to filter only lines containing electronics
  • Pipes to sort to arrange the entries
  • Pipes to uniq to remove duplicates
  • Pipes to wc -l to count the unique electronics products

Hint: This pipeline combines everything you've learned: filtering with grep, preparing data with sort, removing duplicates with uniq, and counting with wc -l. Chain all five commands using the | symbol.

Try it yourself

Terminal

All lessons in Fundamentals