zot24
10/20/2016 - 2:52 PM

sed command to remove all in between something including that `something` on a file

sed command to remove all in between something including that something on a file

#!/bin/bash

sed -i.bak -rn ':a;N;$!ba;s/<match docker\.all(.*?)<\/match>//gp' /etc/fluent/fluent.conf