commit eb67f9e628485c0d5e666d053e8a1943aaf6d7da parent e03a8d649b20261e807cfe13b8c1fd6b8f080f1f Author: Jacob R. Edwards <n/a> Date: Sat, 30 Oct 2021 19:54:31 -0700 Add regex filter to pkg_list Diffstat:
| M | local/bin/bin/pkg_list | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/local/bin/bin/pkg_list b/local/bin/bin/pkg_list @@ -2,8 +2,8 @@ # Copyright 2021 Jacob R. Edwards # License: GPLv3 # -# portslist -- list OpenBSD ports for your arch (requires 'portslist' package) +# List OpenBSD ports for your arch (requires 'portslist' package) awk -F '|' -v OFS='\t' -v arch="$(uname -p)" 'match($11, arch) || $11 = "any" { print($1, $4); -}' /usr/local/share/ports-INDEX +}' /usr/local/share/ports-INDEX | egrep "${1:-.}"