I am writing a nightly build script in bash. Everything is fine and dandy except for one little snag:
#!/bin/bash for file in \"$PATH_TO_SOMEWHERE\"; d
You can use the "file" command if you actually want to find out information about the file rather than rely on the extensions.
If you feel comfortable with using the extension you can use grep to see if it matches.