Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bin/bash
- count=0
- echo $1 $2
- while read word1
- do
- printf "%s\n" "$word1"
- if [ "$2" = "$word1" ]
- then
- count="$((count+1))"
- fi
- done < $1
- printf "%s = %d" $2 $count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement