Hands-on task
This task is step 1 of the course “Text in the terminal: grep, sed, awk”
Cut a field by delimiter
/root/sales.csv is a sales export: fields are separated by a semicolon, and the first line is the header date;manager;region;amount;status. The report needs only the columns manager, region and amount — in the same order, with the same ; delimiter, and together with the header. Write them to /root/report.csv.
Reference:cut
What you'll practise:
- cut
- field delimiter
- field selection
- csv