simple script to reverse file contents, word by word