Yeah, the bash variant is obscenely short as well. Short enough that it isn't worth having as a separate program.
cat in.txt | sort > out.txt cat in.txt | sort > out.txtsort in.txt > out.txt
cat file | command > out
is the same as command < file > out sort in.txt > out.txtcat $1 | sort > $2