Sed replace just once per file

By.

min read

My profile

Share this:

Instead of

sed -i -e 's/ssl_stapling /http2 on;\nssl_stapling /g' *

do this

sed -i '0,/ssl_stapling /s//http2 on;\nssl_stapling /' *
Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *