Hi
This code attached here does not work for me and I tried other code and failed so far..What am I missing?
This is what what I want to do with sedscr (used with runsed.sh):
Find "empty line and xxxxx in the next line after the empty line"
if it is found insert cccccc before the empty line which is before the xxxxx.
This is the code of sedscr
/^$xxxxx/{
i\
ccccc line here
}
Can this be done?
the input file is:
aaaaa
bbbbb
xxxxx
I want to get:
aaaaa
bbbbb
ccccc
xxxxx
This code attached here does not work for me and I tried other code and failed so far..What am I missing?
This is what what I want to do with sedscr (used with runsed.sh):
Find "empty line and xxxxx in the next line after the empty line"
if it is found insert cccccc before the empty line which is before the xxxxx.
This is the code of sedscr
/^$xxxxx/{
i\
ccccc line here
}
Can this be done?
the input file is:
aaaaa
bbbbb
xxxxx
I want to get:
aaaaa
bbbbb
ccccc
xxxxx