Skip to content

Instantly share code, notes, and snippets.

@zot24
Created October 20, 2016 14:52
Show Gist options
  • Select an option

  • Save zot24/53ff77dac2705ae0cfcc798da874e2ca to your computer and use it in GitHub Desktop.

Select an option

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
#!/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