Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active December 18, 2019 11:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedir/129739a8b5f4b2b0e2611383fe63fe80 to your computer and use it in GitHub Desktop.
Save fedir/129739a8b5f4b2b0e2611383fe63fe80 to your computer and use it in GitHub Desktop.
SHELL > Replace any IP by G.D.P.R :)
#!/bin/bash
sed -i -e 's/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/G.D.P.R/g' some.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment