Report generation script
📖 Scenario: You work in an office where you need to create a simple report from sales data every day. The sales data is stored in a text file with product names and sales numbers. You want to automate making a report that shows only the products with sales above a certain number.
🎯 Goal: Build a bash script that reads sales data from a file, filters products with sales above a threshold, and prints a simple report.
📋 What You'll Learn
Create a sales data file with exact product names and sales numbers
Add a variable for the sales threshold
Use a loop to read the file and select products with sales above the threshold
Print the filtered report showing product names and sales
💡 Why This Matters
🌍 Real World
Automating daily report generation from sales or other data files saves time and reduces errors.
💼 Career
Many jobs require writing scripts to process data files and create reports automatically.
Progress0 / 4 steps