Sample Header Ad - 728x90

Basename in find -exec

0 votes
2 answers
292 views
I need use in find results full path and dir name. This not work:
find ./1cv8 -maxdepth 1 -type d -wholename "./1cv8/*" -exec bash -c 'echo vrunner -src "{}" -o ./builds/"${basename "{}"}"' \;
error:
bash: ${basename "./1cv8/common"}: bad substitution
bash: ${basename "./1cv8/conf"}: bad substitution
bash: ${basename "./1cv8/x86_64"}: bad substitution
Please help
Asked by Dmitriy (3 rep)
Oct 2, 2023, 10:12 AM
Last activity: Oct 2, 2023, 12:15 PM