diff options
Diffstat (limited to 'src/query.sh')
-rw-r--r-- | src/query.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/query.sh b/src/query.sh new file mode 100644 index 0000000..7e66b7c --- /dev/null +++ b/src/query.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +search () { + find ${PACKAGES_DIR} -type f | sed "s,${PACKAGES_DIR}/,," | grep$(echo $@ | sed "s/ /\\|/g") +} |