Want to create an alias of this command
find . -name '*.sh' -exec chmod a+x '{}' \;
and I am not able to escape the single quotes while setting the alias
alias mx='find . -name '*.sh' -exec chmod a+x '{}' \;'
Any help is appreciated.
You could just use double quotes:
alias mx="find . -name '*.sh' -exec chmod a+x {} \;"
EDIT: Also, the single quotes '
around the {}
is not necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With