Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear
- if [ $# -ne 2 ]
- then
- echo "Invalid Number of Args"
- exit
- fi
- str=`cat $1`
- for a in $str
- do
- echo "Word=$a, Count=`grep -c "$a" $2`"
- done
RAW Paste Data
Copied