How to remove space in sed for / character

Hi...
i need a script to remove the space before and after the operator like( / ).
Ex :
Input file
apple / manago
mango / fresh apple / fresh

Desired output:
apple/manago
mango/fresh apple/fresh

Note: betwee the desired operator space should be removed, between words do not remove space.
Thanks in advance,
Vasanth

-----Post Update-----

thanks

-----Post Update-----

THanks

http://www.unix.com/shell-programming-scripting/112338-remove-space-between-operator-script-required.html

Try modifying the solution given to you few mins ago...

Dear rakeshawasthi

i tried but for \ character it is giving error...

kindly guide me to solve this....

vasanth

-----Post Update-----

sorry it is not \ character. the problem is with / charcter.

That is slash character.

-----Post Update-----

sorry it is not \ character. the problem is with / charcter.

That is slash character.

echo "apple / mango /jack  " | sed -e 's|[ ]*/[ ]*|/|g'