aboutsummaryrefslogtreecommitdiffstats
path: root/fish/functions/livehosts.fish
blob: 7e53bc6c5169ddc90355cb9f6312a29e04668473 (plain) (blame)
1
2
3
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