in reply to one liner to print out sorted list of word

Here's one way, it's case sensitive:
perl -e 'open(FILE, $ARGV[0]); print sort <FILE>' text
Also, try |sort|uniq to get rid of duplicate entries.