need help substituting with sed
I'd like to reformat a MAC address like this:
I tried the following which doesn't work unfortunately ;-(
echo "MAC: "$MAC
MAC2='echo $MAC | sed -e s/-/ /g'
echo "MAC2: "$MAC2
I don't think that it is necessary to point out that i'm a bloody newbie to this...