title: Finding missing file from directory using bash script and prinitng
body: <p>I have files in directory  like 111.print.save, 111.con.save ,snap-con-123-12-3-full.tgz and i want to check with pre defined accepted file which are defined in array. can use any number instead of 111.
  The issue is that lets say that if i have 111.con.save missing than the output shows snap-con-*-full.tgz and con.save missing even though i have sanp-con file.</p>
  <pre><code>ACCEPTED_FILES=(&quot;print.save&quot; &quot;con.save&quot; &quot;snap-con-*-full.tgz&quot;)
  FILE_LIST=(`find $PARENT_DIR/$dns  -maxdepth 1 -not -type d -mtime 0 -name &quot;*$term_id*&quot;| awk -F'/' '{print $NF}' | tr '\n' ' '`)
  
  MISSING_FILE=()
  for search_file in ${ACCEPTED_FILES[@]}; do
    if [[ &quot;${FILE_LIST[*]}&quot; == *&quot;$search_file&quot;*  ]]; then
      Message &quot;File found $search_file&quot;
    else
      #MISSING_FILES=&quot;${MISSING_FILES} $search_file&quot;
      MISSING_FILES+=($search_file)
    fi
  done
  echo &quot;Missing Files: ${MISSING_FILES[*]}&quot;
  </code></pre>