3 ms·
Python (assuming that the last line ends with a newline): import sys open(sys.argv[2], "w").writelines(sorted(open(sys.argv[1])))
by ptx 13y ago
Python (assuming that the last line ends with a newline):
import sys
open(sys.argv[2], "w").writelines(sorted(open(sys.argv[1])))