The Second Column
Each line of people.csv holds a name, a city and an age with commas between them, like ada,boston,31. Print the cities, one per line, in the order of the file.
Example 1
people.csv
ada,boston,31 ben,miami,27 cy,austin,45
prints
boston miami austin
Constraints
- Up to 12 lines
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Bash problems
- Three Largest NumbersEasy
- Without the HeaderEasy
- How Many FilesMedium
- If the File Is ThereMedium
- On One LineMedium
- Orders Over a HundredMedium
- Pull Out the NumbersMedium
- Rename Them AllMedium