dotfiles2/base/bin/pkg_find

5 lines
126 B
Plaintext
Raw Normal View History

2022-08-06 05:16:17 +00:00
#!/bin/sh
# Find a package in pkgsrc
find /usr/pkgsrc -mindepth 2 -maxdepth 2 -type d -name "*$1*" | sed 's,^/usr/pkgsrc/,,'