How can I sort a file then output it into another file I never created or do I have to create the file I want to put in. Might not make sense how I am typing it so...
Let's say the file I have is called Names.txt
. Within Names.txt
is a list of names. Now I want to sort Names.txt
in a reverse sort then output it to a new file called SortedNames.txt
all in one command.
Or do I have to create SortedNames
first, then sort it, copy what's inside names.txt
then paste it on sortednames.txt
?