Pick a Column
Medium · Sed & Awk · awk
Problem
stock.txt has whitespace-separated columns: an item, a count and a price.
Print the item and count of every line whose count is greater than 5, as .
Approaches
- awk pattern and action
Related problems
Start free on Cariara · Coding problems · System design studio