Created
October 20, 2016 14:52
-
-
Save zot24/53ff77dac2705ae0cfcc798da874e2ca to your computer and use it in GitHub Desktop.
sed command to remove all in between something including that `something` on a file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sed -i.bak -rn ':a;N;$!ba;s/<match docker\.all(.*?)<\/match>//gp' /etc/fluent/fluent.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment