Hands-on task
This task is step 7 of the course “Text in the terminal: grep, sed, awk”
Order export without cancelled orders
The export /root/orders.csv (a header and lines id,client,amount,status) contains cancelled orders with the status cancelled. Keep in /root/active_orders.csv all lines except the cancelled ones — together with the header and in the original order.
Reference:grep
What you'll practise:
- grep -v
- inverted match
- line filtering
- csv