From e4640e28c8449eea66392052bfab57ce0cdd27f9 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 6 Sep 2020 16:48:05 +0100 Subject: first commit --- fish/functions/livehosts.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 fish/functions/livehosts.fish (limited to 'fish/functions/livehosts.fish') diff --git a/fish/functions/livehosts.fish b/fish/functions/livehosts.fish new file mode 100644 index 0000000..7e53bc6 --- /dev/null +++ b/fish/functions/livehosts.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function livehosts --description alias\ livehosts=nmap\ -sP\ \(ip\ -4\ -o\ route\ get\ 1\ \|\ cut\ -d\ \'\ \'\ -f\ 7\)/24\ \|\ grep\ report\ \|\ cut\ -d\ \'\ \'\ -f\ 5 + nmap -sP (ip -4 -o route get 1 | cut -d ' ' -f 7)/24 | grep report | cut -d ' ' -f 5 $argv; +end -- cgit v1.2.3