Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: MadeInGermany
7,513
Posted By MadeInGermany
Most easy: let the add.txt begin with an empty...
Most easy:
let the add.txt begin with an empty line!


If you really want an extra command to add the empty line, then...


The \n handling is a bit strange in GNU sed. The following seems to...
7,513
Posted By MadeInGermany
You had the wrong quotes. sed -i "/$arg/r...
You had the wrong quotes.
sed -i "/$arg/r add.txt" ssl.confand the shell will substitute the $arg.

--- Post updated at 11:14 ---

But if you have multiple Listen and want to insert test after...
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 04:26 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy