]> apps.delaporte.us Git - minion.git/commitdiff
Sort minion list output
authorEdward <delaport@illinois.edu>
Wed, 1 Jul 2026 16:48:12 +0000 (11:48 -0500)
committerEdward <delaport@illinois.edu>
Wed, 1 Jul 2026 16:48:12 +0000 (11:48 -0500)
bin/ml
bin/mla

diff --git a/bin/ml b/bin/ml
index 5c001ea0a98a755962af823e16f756929f8af171..d56edaca36e7765b18e081ceb96ae3ae17b4bf56 100755 (executable)
--- a/bin/ml
+++ b/bin/ml
@@ -2,4 +2,4 @@
 # ml - minion list
 # Finds files in ~/Journal/YYYY whose names match the input
 year=`date +%Y`
 # ml - minion list
 # Finds files in ~/Journal/YYYY whose names match the input
 year=`date +%Y`
-find $HOME/Journal/$year -type f -iname "*$1*\.md"
+find $HOME/Journal/$year -type f -iname "*$1*\.md" | sort
diff --git a/bin/mla b/bin/mla
index d26ec843a46d5758773fccb180d30ea7807975f3..f73808ce59ef06d609136f85283b9a5baa38e72a 100755 (executable)
--- a/bin/mla
+++ b/bin/mla
@@ -1,4 +1,4 @@
 #!/bin/bash
 # ml - minion list any
 # Finds files in ~/Journal/ (any year) whose names match the input
 #!/bin/bash
 # ml - minion list any
 # Finds files in ~/Journal/ (any year) whose names match the input
-find $HOME/Journal -type f -iname "*$1*\.md"
+find $HOME/Journal -type f -iname "*$1*\.md" | sort