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
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.
panyam
4
echo "apple / mango /jack " | sed -e 's|[ ]*/[ ]*|/|g'