This question already has an answer here:
- Sort fields inline 2 answers
I don't know how to read input array number in input.txt
and write result in output.txt
.
Example:
input.txt have array 7 8 9 2
write result sort in output.txt 2 7 8 9
How can I do it?