my file contains the Strings:
∗Cast and characters
* Bob Denver is Gilligan
I want to insert the line * ATTENTION * to any line starting with * followed by one OR more spaces. it will be preceded by a blank line and followed by a
blank line inserted above it.
I have:
/^\*[ \t]/i\
\* ATTENTION \*
it gives me
∗Cast and characters
* ATTENTION *
* Bob Denver is Gilligan
but I want :
∗Cast and characters
∗ ATTENTION ∗
∗ Bob Denver is Gilligan
Note: I have BSD version of sed so i can't use \n