Removing a character using sed

Hi,

I have a file with the text below. How do i remove the character "%" from the text file using sed ? Can anybody help ?

0%
68%
72%
0%
54%
33%
75%
24%
6%
59%
77%
77%
33%

sed 's/%//' file > newfile

basically, its just something like this

echo "68%" | sed "s/%$//" #assume % is always at the end.

You guys are great! It works !Thanks a million

What if you could possibly have more than one % character at the end of the string? What command would you use then to ensure that there were no % chars at the end?

I ask b/c I want to take a directory path that a user passes me, and if there are any / chars at the end, I want to delete them all.

thanks to all for any help...

echo "82%%%" | sed 's/%*$//'
echo "/this/is/my/path////" | sed 's!/*$!!'

How can remove string contains / in a file
for example my input like

<dgjfgjdgfjsdg/kdfhgdhgjkhdfjkg/jkdfjhdk/kjfdhgkdjh=kjfh:"dfjgdjfg"><dfjvgdjgvdjgfvjdgfjgdjfgjkdg><jdfgvjdgfjgbdjfgbj>

i would like to remove

<dgjfgjdgfjsdg/kdfhgdhgjkhdfjkg/jkdfjhdk/kjfdhgkdjh=kjfh:"dfjgdjfg">