Insert using SED

xoxomos
xoxomos used Ask the Experts™
on
I have a file that contains
aaaaa
bbbbb
aaaaa
eeeee
junk
more junk
end
I want to look for junk.  Once i locate 'junk' i want to insert preferably the contents of a file called filea after the 'junk'
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2014
Top Expert 2015
Commented:
sed -e '/junk/ r filea'

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial