I'm finding that when I use find's -or operator in combination with -exec, I don't get the result I expect. When searching for .cpp and .h files, the command works as expected if I don't use -exec:
Finding files based on different names I know how to do. The problem is that I don't know how delete all of them at once. I am using OMVS in z/OS390.
To find files searching by different extensions I ...
I am new bee for Linux. I have a question about the command find. When I search a file under a directory, I would like to skip a sub-directory named publish
find ./ -path ./publish -prune -o -iname ...
I'm using GNU's find.
I've simplified my problem to this shell session:
$ mkdir t
$ cd t
$ touch a
$ ln -s a b
$ find -type l
$ find -type l -o -type f
$ find -type l -print
$ find -...
I found this weird behavior in find. Depending on the order of the parameters to find it finds different files.
For example, I have a directory tree with the following content.