title: UNIX Script for a list of strings find those not in any file
body: <p>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</p>
  
  <pre><code>FILE=$1
  TARGETROOT=$2
  
  for LINE in `grep '[A-Z]*=' $FILE | awk -F '=' '{print$1}'`;
  do
  
  done;
  </code></pre>
  
  <p>Inside this loop I want to find those $LINE vars which are not in $TARGETROOT or its subdirs</p>
  
  <p>Example files</p>
  
  <pre><code>Properties File
  a=1
  b=2
  c=3
  ...
  </code></pre>
  
  <p>Many files that contain references to properties via</p>
  
  <pre><code>FILE 1
  PropAValue = a
  </code></pre>