summaryrefslogtreecommitdiff
path: root/src/query.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-20 02:13:54 +0000
committerdavidovski <david@davidovski.xyz>2022-02-20 02:13:54 +0000
commite5bc87ffc368799685b9c9bf0e01db35ee974540 (patch)
tree322791eae090f5b6f3f821f6f09b83c5aa199561 /src/query.sh
parent65940c0cc719311fbac5e11c81cce34563ea3f21 (diff)
added search functionality
Diffstat (limited to 'src/query.sh')
-rw-r--r--src/query.sh5
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")
+}