Orders Over a Hundred
Each line of orders.csv is a name and an amount, like ada,250. Print the name of every order whose amount is more than 100, in the order of the file.
Example 1
orders.csv
ada,250 ben,100 cy,99 dee,1000
prints
ada dee
Constraints
- Up to 15 lines
- Amounts are whole numbers
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Bash problems
- Pull Out the NumbersMedium
- Rename Them AllMedium
- SquaresMedium
- Sum a ColumnMedium
- Swap Two ColumnsMedium
- The Longest LineMedium
- The Most Common WordMedium
- Busiest VisitorsHard