Replacing a paragraph between pattern , with the content 4m another file

hi,
i wanted to put the output of file f1 into the pattern space of file f2

f1:
wjwjwjwjwjwjwj //these line go in file f2
jwjwjwjwjwjjwjw
wjwjwjwjjwjwjwj

f2:
Pattern_start
__________ //these are the line to be replaced
__________
Pattern_end

i m using sed as:
sed 's/Pattern_start/,/Pattern_end/`cat f1`/g' file2

it says
sed: Function s/Pattern_start/,/Pattern_end/wjwjwjwjwjwjw cannot be parsed.

pls help :frowning: :frowning: :confused: :confused:

sed -n '/Pattern_start/,/Pattern_end/{/^Pattern/! d;}" file2 | sed "/Pattern_start/r f1"

wat is Pattern in this ...

sed -n '/Pattern_start/,/Pattern_end/{/^Pattern/! d;}" file2 | sed "/Pattern_start/r f1"

/^Pattern/ Are you asking this?
Used this to avoid deleting the Pattern_start and Pattern_end lines.
If the lines between Pattern_start and Pattern_end contain only hyphens then you can use this

sed -n '/Pattern_start/,/Pattern_end/{/^---*/d;}" file2 | sed "/Pattern_start/r f1"

thanx dude...

u r FAB