Hi, I'm trying to run a command containing semi-colons thanks to the SshClient.RunCommand() method but the command doesn't seem to be executed.
The command does work when I'm using it directly.
I was wondering if the semi-colons wouldn't be the problem since they are used to seperate commands otherwise. I guess the problem would be the same for any multiline commands.
If you have any idea on how to bypass this issue, feel free to contribute.
Fyi, the command is:
The command does work when I'm using it directly.
I was wondering if the semi-colons wouldn't be the problem since they are used to seperate commands otherwise. I guess the problem would be the same for any multiline commands.
If you have any idea on how to bypass this issue, feel free to contribute.
Fyi, the command is:
for dir in `find . -type d -name '*123*'`; do mv "$dir" "${dir/123/321}"; done