I have text files with lines like these:
--------------------------
....
... rsubmit;
........
........ endrsubmit;
.......
...... rsubmit ;
................
....... endrsubmit ;
..........
-----------------------------
I want to replace
all 'rsubmit;' with '* rsubmit;'
all 'rsubmit ;' with '* rsubmit ;'
all 'endrsubmit;' with '* endrsubmit;'
all 'endrsubmit ;' with '* endrsubmit ;'
In short, just put star-space at the beginning.
I have tried to use sed 's/rsubmit\;/\* rsubmit\;/g'
but this method cannot take care of those 'endrsubmit'
Can any one help on this ?
Thanks
Alvin SIU