Linux – Replace two characters using one sed command

linuxsed

I'm trying to remove the = and ] characters using one sed command:

# echo "A=[A]" | sed s'/[=\]]/ /g'
A=[A]

Something is wrong with this syntax?

I Expect the following results from sed

# echo "A=[A]" | ....sed 
A [A

Best Answer

echo "A=[A]" | sed s'/[]=]/ /g'

A [A