title: Get files in bash script that contain an underscore
body: <p>In a directory with a bunch of files that look like this:</p>
  
  <pre><code>./test1_November 08, 2014 AM.flv
  ./test2.flv
  ./script1.sh
  ./script2.sh
  </code></pre>
  
  <p>I want to process only files that have an .flv extension and no underscore. I'm trying to eliminate the files with underscores without much luck.</p>
  
  <pre><code>bash --version
  GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)
  </code></pre>
  
  <p>script:</p>
  
  <pre><code>#!/bin/bash
  
  FILES=$(find . -mtime 0) 
  for f in "${FILES}"
  do
          if [[ "$f" != *_* ]]; then
                  echo "$f"
          fi
  done
  </code></pre>
  
  <p>This gives me no files. Changing the <code>!=</code> to <code>==</code> gives me all files instead of just those with an underscore. <a href="https://stackoverflow.com/questions/229551/string-contains-in-bash">Other answers on SO</a> indicate this should work.</p>
  
  <p>Am I missing something simple here?</p>