FunctionRacerProblemsRace

Sorted Into a File

EasyBasha shell script

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

Race itor take your time

Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.

More Bash problems