Hands-on task
This task is step 5 of the course “awk and datamash: reports from tables”
awk: filter by a condition on a field
/root/metrics.txt has three fields: name, number1, number2. Write to /root/hot.txt in full only those lines where the third field is greater than 100, preserving the order.
Reference:awk
What you'll practise:
- awk
- pattern condition
- field comparison
- filtering lines