mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
16 lines
273 B
Bash
Executable file
16 lines
273 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
filter="$1"; shift;
|
|
|
|
grep=""
|
|
for q in "$@" ; do
|
|
list=-l
|
|
if [ "TEST${q:0:1}" = "TEST-" ]; then
|
|
list=-L
|
|
q=${q:1}
|
|
fi
|
|
grep="$grep | xargs -0 -n10 grep --null $list -E \"$q\""
|
|
|
|
done;
|
|
|
|
eval "find -iname \"$filter\" -print0 $grep | tr '\0' '\n'"
|