You're replying to a comment by Artym.

Artym Permalink
July 03, 2016, 16:46

Hi there!
Could anyone explain to me how to work this code?

before:
access_log /var/log/nginx/access.log main;

sed -i '/access_log/s|/[^;]\+|/dev/stdout|' /etc/nginx/nginx.conf

after:
access_log /dev/stdout;

or tell me where I can see an explanation.
I'm beginner in sed, and I've never faced the code like this.
Thank you in advance.
Please excuse my poor English.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "apple_95": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.