Even though I have checked the relevant questions about this, I could not find any solution. I think my problem is very simple, but I cant fix it lack of knowledge.
$statistics dscf parallel $2e-ints_shell_statistics file=DSCF-par-stat $parallel_parameters maxtask=4000 maxdisk=0 dynamic_fraction=0.300000 $pardft memdiv=1 I want to add these multiple lines to a text file after when it sees "unix" word. So my code is something like this.
sed -i "/unix/a \\ $statistics dscf parallel \\ $2e-ints_shell_statistics file=DSCF-par-stat \\ $parallel_parameters \\ maxtask=4000 \\ maxdisk=0 \\ dynamic_fraction=0.300000 \\ $pardft \\ memdiv=1 \\ " control control is my output file. because of the $ sign the output lacks some parts of this insertion which looks like this.
$operating system unix dscf parallel e-ints_shell_statistics file=DSCF-par-stat maxtask=4000 maxdisk=0 dynamic_fraction=0.300000 memdiv=1 I got a bit confused. I am open to any kind of suggestion. It does not have to be with "sed" command.
p.s: This is my first question here. :)