I'd like to get a list of fail logs in the current directory for use in an outside script, the logs are determined with the pattern FAIL in the filename, so I've been using a FAIL* to feed my script files to open and process. However, for each FAIL file there are two types, a compressed file and an uncompressed one. I just want to open the uncompressed file.Is it possible to chain find FAIL* but not if *.gz/bz2/whatever exists?
Matching multiple patterns with ls
shell;ls;patterns