]> apps.delaporte.us Git - minion.git/commitdiff
Add minion find
authorEdward Delaporte <edward@delaporte.us>
Fri, 19 Jun 2026 17:04:01 +0000 (12:04 -0500)
committerEdward Delaporte <edward@delaporte.us>
Fri, 19 Jun 2026 17:04:01 +0000 (12:04 -0500)
bin/mf [new file with mode: 0755]
bin/mfa [new file with mode: 0755]
bin/mh

diff --git a/bin/mf b/bin/mf
new file mode 100755 (executable)
index 0000000..8f9ae61
--- /dev/null
+++ b/bin/mf
@@ -0,0 +1,4 @@
+#!/bin/bash
+# mf - minion find
+# Finds strings in files in ~/Journal/YYYY
+grep -rnw "$HOME/Journal" -e "$1"
diff --git a/bin/mfa b/bin/mfa
new file mode 100755 (executable)
index 0000000..8b45aa4
--- /dev/null
+++ b/bin/mfa
@@ -0,0 +1,4 @@
+#!/bin/bash
+# mfa - minion find any
+# Finds strings in files in ~/Journal/ (any year) 
+grep -rnw "$HOME/Journal" -e "$1"
diff --git a/bin/mh b/bin/mh
index b453205858484edc209d4c869849f7170bd2e813..ffbbce33af04a9e8ca0495ae47c6bd31a9914e39 100755 (executable)
--- a/bin/mh
+++ b/bin/mh
@@ -4,8 +4,9 @@ echo "Usage:"
 echo ""
 echo "mn - minion new - edit a new file with the year and month in the name"
 echo "mh - minion help - print this help"
 echo ""
 echo "mn - minion new - edit a new file with the year and month in the name"
 echo "mh - minion help - print this help"
-echo "ml - minion list - list all files that match"
-echo "mo - minion open - open all files that match"
+echo "ml - minion list - list all files that match in ~/Journal/YYYY"
+echo "mo - minion open - open all files that match in ~/Journal/YYYY"
+echo "mf - minion find - find strings within files in ~/Journal/YYYY"
 echo ""
 echo "Examples:"
 echo ""
 echo ""
 echo "Examples:"
 echo ""
@@ -17,7 +18,7 @@ echo "Advanced Usage:"
 echo ""
 echo "mp - minion print - convert matching files to HTML and open in Firefox (requires https://github.com/gomarkdown/markdown)"
 echo "ms - minion spell - open the matching file with 'aspell'"
 echo ""
 echo "mp - minion print - convert matching files to HTML and open in Firefox (requires https://github.com/gomarkdown/markdown)"
 echo "ms - minion spell - open the matching file with 'aspell'"
-echo "mla, moa - minion X all - act as 'ml' and 'mo', but include all previous years of Journal entries"
+echo "mla, moa, etc - minion X all - act as 'ml' and 'mo', but include all previous years of Journal entries"
 echo ""
 echo "On vi integration:"
 echo ""
 echo ""
 echo "On vi integration:"
 echo ""