[SOLVED] insert file after a line with sed or awk?
i know this can be done, i just can't figure it out (i'm good with RegEx's, but bad with sed).
i need to insert file2 into file1 after finding PATTERN
so say my pattern is "ghij". i would need to insert file2 into the line after that pattern is found.
i know this can be done with sed, the 'r' option, and somehow designating an 'a' for append, but i just don't understand the order/syntax for that.
any help would be greatly appreciated. thank you.