有时候,linux简洁起来真是可怕;
我想对某个目录下面的sh赋予执行权限, 只用了一行命令
ssh $REMOTE_USER@$REMOTE_SERVER "cd $REMOTE_PATH; find . -name '*.sh' | xargs chmod +x "