The first row is to transfer the original file to a tmpFile by deleting punctutation mark (.:!"."{}[] etc.) and substituting '\n' for spacing. Then,we can use awk to calculate each word’s frequency occurance and store them in result.txt.