Hi.
I'm trying to find some words within my directory and created a text file containing them which is read by my shell script:
Code:
#!/bin/bash
var=`cat words.txt`
for i in $var; do
echo $i
find -type f -print0 | xargs -r0 grep -F '$i'
done
But it searches "$i" (dollar sign with 'i'), and not the word. How to do it?
Thank you very much.