I've done quite a lot of research and tried each and every technique listed (some don't work on freebsd/osx), yet when i use the find command for the utmost simple search it comes back empty.
I have a directory full of files like:
file_name_one.ext
_something.ext
some_other_file.ext
maybe_one_more.ext
I've tried the following to find all files containing an underscore:
find . -regex "_"
find . -regex _
find . -name "_"
find . -regex "_"
find . -regex "\_"
find . -regex "_.*"
find . -regex "\_,*"
find . -regex "\_.*"
find . -name "_" -print
find . -regex '_'
find . -regex '\(_\)'
find . -regex '$\137'
find . -regex '\137'
find . -regex '(_)'
find . -regex '\x5F'
find . -regex '.*\x5F'
find . -regex '.*/[\x5F/]
find . -regex '.*/[\x5F/]'
find . -regex '/_/'
find -E . -regex '.*/[^_/]'
find -E . -regex '\137'
find -E . -regex '\137' -print
find -E . -regex '$\137'
find -E . -regex '(_)'
find . -regextype sed -regex "_"
with NO LUCK ...what in heck is going on here? why doesn't it match any files containing an underscore?