I found an old one-line shell script:
find ./../ -name "*.sh" -exec chmod +x \{\} \;
I understand it grants execution rights on all the shell scripts in the directories below the parent directory. However, I haven't seen the syntax \{\} \;
before.
I'm guessing the backslashes escape the characters to yield {} ;
, but what does that mean and why does it work?