The target is not to list temp/run*.*
files. The target is to understand why the second command does not work.
First command:
find . \( -name 'temp' \) -print0 | xargs -0 -L 1 -I datafind ls -ltr datafind
list all the files inside temp folders from actual directory
Second command:
find . \( -name 'temp' \) -print0 | xargs -0 -L 1 -I datafind ls -ltr datafind/run*.*
gives cannot access error on every directory that worked with the previous command.
I searched and read man pages and examples but I can not find why the second command does not work. Any clue, please?
find . ! \( -name 'run*' \) -print