1

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
Cyrus
  • 84,225
  • 14
  • 89
  • 153
Melody
  • 13
  • 3

0 Answers0