tcookwhat: include txt recipes - recipes - various cooking recipes HTML git clone git://src.adamsgaard.dk/recipes DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b413b99b925409c4267de9f0f49fc4a205e27a2e DIR parent 02897467a7dd3975fbbc5c1625e09621d0969268 HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Sat, 12 Oct 2024 08:53:47 +0200 cookwhat: include txt recipes Diffstat: M cookwhat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/cookwhat b/cookwhat 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))