Sorted Into a File
Write the lines of names.txt, in alphabetical order, into a new file sorted.txt. Leave names.txt as it is.
Example 1
names.txt
max ada ivy
ends as
== ./names.txt max ada ivy == ./sorted.txt ada ivy max
Constraints
names.txthas up to 14 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
- The Second ColumnEasy
- 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