Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 KB | None | 0 0
  1. linecnt=0;
  2. tr -s ' ' '\n' < $file_name | { while read word
  3. do
  4.         linecnt=$((linecnt+1))
  5.     done | sort -u
  6.     echo "${linecnt} words"
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement