Skip to main content
2 of 2
Commonmark migration

$ sed '4 a\

> `grep "key" temp_file`' desired.txt

Try this one. Option a is for after line no. 4. You can also give option i for before line no. 4

Hopefully this should work.

PriB
  • 479
  • 3
  • 8
  • 16