How do I replace only the last occurrence of "-" in a string with a space using sed
?
For example:
echo $MASTER_DISK_RELEASE
swp-RedHat-Linux-OS-5.5.0.0-03
but I want to get the following output ( replacing the last hyphen [“-“] with a space )
swp-RedHat-Linux-OS-5.5.0.0 03