replacing characters

hi all

I have a file that has sone spaces in start then / at last. i want to get rid of this. how to do?

eg.
11414/
49878/
27627/

I WANT THE FILE AS

11414
49878
27627

PLEASE HELP

sed 's/^ *//' filename | sed 's/\/$//'

Hi,

Try use sed;

sed 's/\// /g' infile > outfile

That worked

Cheers