Hi everyone,
I am trying to search for a pattern(in this case copyright) in file A and then add the content of file B under the pattern(copyright) found in file A
i did the following
set var=`cat ~/b`
sed "/copyright/ a\${var}" ~/a
this does it job partially because it does not keep the format of file b. for some reason the new lines are being ignored and all the input of file b are written back to back under the pattern"copyright"