I am trying to find some files inside a directory. By default, the find
command is searching the directory which I have specified and it's sub directories.
I tried to use
prune, but nothing helped to overcome this. Can somebody point out the right way to use depth/prune in Solaris?
My code looks like this:
find file_path -depth 1 -name '*.log'
I am getting the following error:
find: bad option 1 find: [-H | -L] path-list predicate-list