Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function grepword {
- awk '{ for (i=1;i<=NF;i++) { print tolower($i) }}' $1 | grep -c $2
- }
- while read word; do
- printf "%s" $word
- while read file; do
- printf ",%s" `grepword $file beef`
- done < filelist
- echo
- done < wordlist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement