fix nsgrep
This commit is contained in:
parent
b54f7adafc
commit
a7f7bf99e4
|
@ -6,7 +6,7 @@ function nsgrep --description 'show open ports for $argv'
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
case 1
|
case 1
|
||||||
netstat -tulpen | grep $1 | grep -v grep
|
netstat -tulpen | grep $argv | grep -v grep
|
||||||
|
|
||||||
case \*
|
case \*
|
||||||
echo "Only 1 argument is valid!"
|
echo "Only 1 argument is valid!"
|
||||||
|
|
Loading…
Reference in New Issue