summaryrefslogtreecommitdiffstats
path: root/fish/functions/livehosts.fish
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@x220.lan>2020-09-06 16:48:05 +0100
committerMatthew Lemon <lemon@x220.lan>2020-09-06 16:48:05 +0100
commite4640e28c8449eea66392052bfab57ce0cdd27f9 (patch)
tree2be81b55bc37da60599f4e6d434e74a57694962e /fish/functions/livehosts.fish
first commit
Diffstat (limited to 'fish/functions/livehosts.fish')
-rw-r--r--fish/functions/livehosts.fish4
1 files changed, 4 insertions, 0 deletions
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