replace string

Hi,

how to replace a string 44247288- with (44247288).

if the string is 44247288 then no change is required.

thanks,
sam

sed s/"44247288-"/"44247288"/g <file_name>

44247288 is not fixed it will change each time.

regards,
sumith

If you want to remove the ending minus

echo "44247288-" | sed 's/-//g'

hi,

kindly explain your scenario in brief.

Thanks.