6 lines212 B

# The ten most common words in a book
tr -cs 'A-Za-z' '\n' < book.txt | tr 'A-Z' 'a-z' \
| sort | uniq -c | sort -rn | head -10
# Save errors and output separately
ls /nonexistent /tmp > out.txt 2> errors.txt