I have a file that's all over the place and I'm sort of a neat freak, I do not feel comfortable sharing my file with a public site so ill say the file is called sync and looks like this
hh-hhhhhhhh-hhhhhhhh - sdgsg
hh-dgsdgdfgsgsdfgdgsdgsssd - dhhdhdh
fd-gdsg - dfsggs
dgssd-gdgsdg - fsdgsdg
dfgdg-sdgsgsdgsdgs - dghgdgs
dfsg-sdgdgdg - dsggg
sdgsdgdg-sgsgsdgsdggs;
I have done a
sed -i 's/-/;/p' sync
because i wanted a ; at the end of every line, I tried to use a special character with sed like
sed -i 's/\* - \*/;/p' sync
Is it possible to change everything after the last dash with nothing but a semi colon and have it be organized like this
ggf-sdgsdfgfg;
dg-gdfggdg-ggdfgdg;
dggsdhds-hsdhshddgfdg;
dgdhg-dggdggdgdgdfgdg-dfgg;
fdgdgf-gdgfgd-fgdfgdgdgdgdgdg;
dgdgdgd-gdfgdggdgdf-ggdfgdfgdggd;