Sort and Uniq Command Practice
📖 Scenario: You have a list of fruit names with some duplicates. You want to organize this list by sorting it alphabetically and removing duplicates to get a clean list.
🎯 Goal: Learn how to use the sort and uniq commands together to sort a list and remove duplicate entries.
📋 What You'll Learn
Create a file named
fruits.txt with the exact fruit names given.Use the
sort command to sort the fruit names alphabetically.Use the
uniq command to remove duplicate fruit names after sorting.Display the final sorted and unique list on the terminal.
💡 Why This Matters
🌍 Real World
Cleaning and organizing lists of data like names, products, or logs is common in daily computer tasks.
💼 Career
Many IT and data jobs require sorting and filtering text data quickly using command line tools.
Progress0 / 4 steps