19 lines
525 B
Plaintext
19 lines
525 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
find /usr/ports/ \
|
||
|
-not \( -path "/usr/ports/pobj" -prune \
|
||
|
-o -path "*/distfiles" -prune \
|
||
|
-o -path "*/packages" -prune \
|
||
|
-o -path "*/logs" -prune \
|
||
|
-o -path "*/CVS" -prune \
|
||
|
-o -path "*/pkg" -prune \
|
||
|
-o -path "*/patches" -prune \
|
||
|
-o -path "*/files" -prune \
|
||
|
-o -path "*/openbsd-wip" -prune \
|
||
|
-o -path "*/mystuff" -prune \
|
||
|
-o -path "*/.git" -prune \
|
||
|
\) \
|
||
|
-maxdepth 4 \
|
||
|
-type d \
|
||
|
-iname "*$1*"
|