I have a bash script which runs as root:
#!/bin/bash /var/bin/svn_co -h $1 >> /var/log/svn/status.log
If the following should somehow occur, I'm in trouble.
/var/svn/hooks.d/post-commit -h `rm / -fr`
I would like to take
rm / -fr and remove all instances of ` from it.
How does one simply strip the grave accent? Or, even better, how does one validate variables and options provided as input?