Hands-on task
This task is step 1 of the course “First steps with text”
Split the table header from the data
/root/data/prices.csv is a shop's price list. The first line is the header: the column names. After it comes one line per item.
- Save the header (only the first line) to
/root/header.txt. - Save all the item lines — everything except the header, in the same order — to
/root/rows.txt.
Don't change prices.csv itself.
What you'll practise:
- cat
- head -n
- tail -n
- tail -n +N
- CSV header