From e5bc87ffc368799685b9c9bf0e01db35ee974540 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 20 Feb 2022 02:13:54 +0000 Subject: added search functionality --- src/query.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/query.sh (limited to 'src/query.sh') 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") +} -- cgit v1.2.1