Hi I am trying to us the find command and -exec to -execute a file file when found but it doesn't seem to work. here is some code:
ssh $i find $DIRECTORY -name "version.sh" -exec sh {} \;
I am getting the error no arguments for -exec
thanks!
Your side gets a semicolon, but the other side doesn't.
... \\\;
ssh command line to contain shell metacharacters, you need to quote or escape them.
sh.