I know I can translate upper to lower case letters by
echo 'linux' | tr "a-z" "A-Z"
who would I translate or replace an occurrence of & with %20%26%20. Maybe something like this
echo '&' | tr "&" "%20%26%20"
I know I can translate upper to lower case letters by
echo 'linux' | tr "a-z" "A-Z"
who would I translate or replace an occurrence of & with %20%26%20. Maybe something like this
echo '&' | tr "&" "%20%26%20"
sed -i 's/&/%20%26%20/g' inputfile
will edit the file in place.
you can just use the shell.
$ var="&test"
$ echo ${var//&/%20%26%20}
%20%26%20test