touch 1.txt 2.txt
find . -name "[12].txt" -exec sh -c 'echo "${1}"' sh {} + -exec echo {} +
./2.txt
./2.txt ./1.txt
Why echo within sh -c outputs only one file? Today I thought I understood how find works from Understanding the -exec option of `find` but now puzzled again. Got same result for -exec bash. TIA