0

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
  • 77,979
  • 13
  • 71
  • 125
Melody
  • 3
  • 1

0 Answers0