in reply to one liner to print out sorted list of word
perl -e 'open(FILE, $ARGV[0]); print sort <FILE>' text [download]