Ok, so in my code example below, i would like to first search for the
line containing the "-- CHANGE HISTORY" string. Then, I would like
delete the ONE line before it (i.e. the "-- ------etc..." line).
Then, i would like to delete EVERY line to the end of the file after
the CHANGE HISTORY string line. Finally, i would like to delete line
containing the CHANGE HISTORY string.
So far, i'm able to delete all the lines after CHANGE HISTORY by using
sed -e '/-- CHANGE HISTORY:/q' myfile.ada
but this leaves the
-- ----------------------------------------
-- CHANGE HISTORY:
remaining. Any help will be appreciated, and i'd like to use SED if
possible (rather than awk, ksh scripts, etc.)
Thanks...
-- ----------------------------------------
-- CHANGE HISTORY:
-- All remaining text after the "-- CHANGE HISTORY" string should be
deleted
-- as well....
etc...
etc...
....
....
<<End of File>>