I have a variable in a Bash script, and I want to replace all occurrences of /
in it with _
and all occurrences of +
with -
; and I want to remove all occurrences of =
. So, if this were JavaScript, something like this:
str = str.replace(/\//g, "_").replace(/\+/g, "-").replace(/=/g, "");
How can I do this in Bash.