I'm parsing a properties file to get a list of properties defiend. I want to check all the places these properties are used (target dir and subdirs), flagging up any that are defined in the properties file but not used anywhere in the targer dir. Thus far I have
FILE=$1
TARGETROOT=$2
for LINE in `grep '[A-Z]*=' $FILE | awk -F '=' '{print$1}'`;
do
done;
Inside this loop I want to find those $LINE vars which are not in $TARGETROOT or its subdirs
Example files
Properties File
a=1
b=2
c=3
...
Many files that contain references to properties via
FILE 1
PropAValue = a