tcookwhatveg: include txt recipes - recipes - various cooking recipes
(HTM) git clone git://src.adamsgaard.dk/recipes
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
---
(DIR) commit db9fce4504b051b90fe13d4c0fa4840a53125143
(DIR) parent b413b99b925409c4267de9f0f49fc4a205e27a2e
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 12 Oct 2024 08:53:51 +0200
cookwhatveg: include txt recipes
Diffstat:
M cookwhatveg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/cookwhatveg b/cookwhatveg
t@@ -1,7 +1,7 @@
#!/bin/sh
# Pass a series of ingredients as arguments to this script, and it
# will print all files that contain them.
-cmd="find . -iname '*.md' -type f"
+cmd="find . \( -name '*.md' -o -name '*.txt' \) -type f"
i=0
for a in "$@"; do
i=$((i + 1))