commit 3613ca1d4602832faf857705fc77157b311d5e0e parent 6f209a5b75393ecc240338ba08585cd34a122b88 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Wed, 4 Nov 2015 15:45:16 +0100 isup Diffstat:
isup | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/isup b/isup @@ -0,0 +1,8 @@ +#!/bin/bash + +# ping $1 through isup.me + +curl -s "isup.me/$1" | grep 'class="domain"' | + rev | cut -d '>' -f1 | rev | + sed 's/ *\([^ ][^.]*\)\./\1/g' +