Adjust launch-reaper scripts a bit, also add two general scripts

This commit is contained in:
2025-10-05 15:08:29 -05:00
parent 1be24fa795
commit f82a7c4c71
6 changed files with 72 additions and 24 deletions

14
src_files/.local/scripts/gfind Executable file
View File

@@ -0,0 +1,14 @@
#! /bin/zsh
# simple wrapper to run both find and grep
# usage: gfind <search-term> [search-directory]
# if no search-directory given, uses . by default
searchTerm=$1
searchDirectory=$(if [[ -n $2 ]] then echo $2; else echo "."; fi)
printf '//// find results for: %s in directory: %s\n' $searchTerm $searchDirectory
find $searchDirectory -iname "*$searchTerm*"
printf '\n//// grep results for: %s in directory: %s\n' $searchTerm $searchDirectory
grep -rIi $searchTerm $searchDirectory