Skip to main content
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 267
Source Link
Omri
  • 187
  • 2
  • 7

How to append output to a specific line in a file

I want to append shell script output to a specific line in a file.

Is it possible to do something like that, But to append the output in the third line of the file, Instead of the end of the file?

sh ./myScript.sh >> myFile.txt