Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. function grepword {
  2. awk '{ for (i=1;i<=NF;i++) { print tolower($i) }}' $1 | grep -c $2
  3. }
  4.  
  5. while read word; do
  6. printf "%s" $word
  7. while read file; do
  8. printf ",%s" `grepword $file beef`
  9. done < filelist
  10. echo
  11. done < wordlist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement