I have two files(s.txt,d.txt), and want to insert s.txt into d.txt before the line containing 'hello'. I use
sed '/hello/i/r s.txt' d.txt
I have two files(s.txt,d.txt), and want to insert s.txt into d.txt before the line containing 'hello'. I use
sed '/hello/i/r s.txt' d.txt