In questo momento sto usando echo "Hello World" >> file.txtper aggiungere del testo ad un file ma devo anche aggiungere del testo sotto una certa stringa diciamo "[opzione]", è possibile con sed?
PER ESEMPIO:
File di input
Some text
Random
[option]
Some stuff
File di uscita
Some text
Random
[option]
*inserted text*
Some stuff
inputle outputlinee e. Perché Q non è chiaro. Potresti anche farlo echo "Hello World [option]" >> file.txt, ma non ha senso.