Заметки
#!/bin/bash
sudo netstat --inet -lpn |\
sed \
-e '1 s/.*/\nPick your port number from the from the following list of names\nNumber\tName/p' \
-e 's/[^:]*:\([0-9]*\).*LISTEN *[^\/]*\/\(.*\)/\1\t\2/p' -e d
Комментариев нет :
Отправить комментарий