summaryrefslogtreecommitdiffstats
path: root/grep-ip
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-06-29 12:00:02 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-06-29 12:00:02 +0200
commit2bd268bb3fc2f7525298effa2da2467af52a4333 (patch)
treea1030e4150057f7eb7d72aad10901dc46e14a83e /grep-ip
parente77020b91186cb2408696b07b9c4113c8693361d (diff)
downloadbin-2bd268bb3fc2f7525298effa2da2467af52a4333.tar.gz
bin-2bd268bb3fc2f7525298effa2da2467af52a4333.tar.xz
Add grep-ip
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'grep-ip')
-rwxr-xr-xgrep-ip3
1 files changed, 3 insertions, 0 deletions
diff --git a/grep-ip b/grep-ip
new file mode 100755
index 0000000..97fc83f
--- /dev/null
+++ b/grep-ip
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec grep -Eo "([0-9]{1,3}[\.]){3}[0-9]{1,3}" "$@"