How to Delete space from the file

Hi,

I want to delete the space from the file.

For eg :
deep | raj | sis

i want the output as

deep|raj|sis

Please Help me

Thanks,
Deep

echo 'deep | raj | sis' | sed 's/[ ]//g'

.. or just escape the space

echo 'deep | raj | sis' | sed 's/\ //g'

.. or use tr to remove space

echo 'deep | raj | sis' | tr -d ' '