Inserting a file into another file using sed

view story

http://unix.stackexchange.com – I want to insert the contents of file1 into file2 after a matching PATTERN. I want to do it only after the first occurrence of the PATTERN. I would like to know the modification I need to make to the following command for my needs. sed -i "/PATTERN/r file1" file2 (HowTos)