Hello, I am trying to search a directory for all files matching "G*" without looking in sub-directories "success" and "error". I've searched this forum and found the following syntax, but can't make it work:
what if there are a lot of subdirectories, or there are subdirectories under subdirectories(like a tree), that is, I shouldn't be specifying what subdirectories not to descend. Isn't there a way to tell find command to search for file only in the specified directory(but do not descend any subdirectory) ?