On One Line
names.txt has one name per line. Print them all on one line with a comma between each two, like ada,ben,cy: no comma at the end.
Example 1
names.txt
ada ben cy
prints
ada,ben,cy
Constraints
- 1 to 12 names
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Bash problems
- Orders Over a HundredMedium
- Pull Out the NumbersMedium
- Rename Them AllMedium
- SquaresMedium
- Sum a ColumnMedium
- Swap Two ColumnsMedium
- The Longest LineMedium
- The Most Common WordMedium