Heya guys:
I've got a small problem with the usage of sed..
This works perfectly from the command line:
Code:
echo "ftps://user:pass@some.site.com:port/path" | sed 's/\//\\\//g'
(returns ftps:\/\/user:pass@some.site.com:port\/path as it should)
but when used in a bash script I can't get it to work properly:
if $1 is ftps://user:pass@some.site.com:port/path , then
Code:
R_PATH=`echo "$1" | sed 's/\//\\\//g'`
with that code, $R_PATH should be ftps:\/\/user:pass@some.site.com:port\/path but it doesn't work :(
any suggestions would be appreciated ;)