Hi,
filenames:
contains name of list of files to search in.
placelist
contains the names of places to be searched in all files in "filenames"
for i in $(<filenames)
do
egrep -f placelist $i
if [[ $? == 0 ]]
then
echo $i
fi
done >> outputfile
Output i am getting:
I want output like this.
Appreciate help