Regular expression for Apache substitute

To convert wp-admin to acceso08 is working in normal cases, but in cases like #wp-admin: xx is not working.

Substitute s|wp-admin|acceso08|n

Answers


Notice the 'g' flag at the end.

sed -e 's|wp-admin|acceso08|g' input_file > output_file

Details on the g flag: http://www.grymoire.com/Unix/Sed.html#uh-6


Need Your Help

NGINX RTMP convert flv to hls?

nginx ffmpeg rtmp flv hls

I have a server that takes an rtmp stream and saves it as flv.