The file has the content:
[Greet]
Hello
Hi
Hola
I want to add a string called Hey
so that its position is after Hello
:
[Greet]
Hello
Hey
Hi
Hola
Is there a way to do the above by using echo
or other native linux tools from the command line?