using sed (or awk or whatever is best/shortest command), how do i replace ALL the text from a matchedpattern to EOF in a file?
ie if the file is:
blahblahblah
moreblah
replacefromhereon
xxxx
.....
yyyy
and i want the file to be:
newtexthere
morenewtexthere.
except i wont know what all the text after "replacefromhereon" is. so i need to replace from that matched pattern to EOF regardless of whats there.
how do i achieve in simplest way?