commit 9abe9acb1ce84c45505f1ef1a3669b108513ce75 parent 639b19f9a4d9ae1ffbc8cbc5af1e8cc8115cfa06 Author: hhvn <dev@hhvn.uk> Date: Sat, 19 Jun 2021 17:39:27 +0100 .s/b/servicename: update Diffstat:
M | .scripts/bin/servicename | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.scripts/bin/servicename b/.scripts/bin/servicename @@ -1,3 +1,3 @@ #!/bin/sh -grep "$1" < /etc/services +sed 's~/.*~~' < /etc/services | awk -v "pattern=$1" '$1 == pattern || $2 == pattern'