I'm creating a remote directory path on a webserver that I'd like to be executable. I create it remotely with a command like:
ssh user@machine mkdir -p a/b/c/d/e/f
Next, I'd like to be able to chmod directories a-f but avoid doing a chmod -r on the remote directory root.
Is there an elegant mechanism to start with the a/b/c/d/e/f path and do an effective chmod a+x a; chmod a+x a/b; chmod a+x a/b/c; ... without parsing out each chmod?
 
     
     
     
    