Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active Dec 18, 2019
Embed
What would you like to do?
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