tadd script to show recipes containing list of ingredients - recipes - various cooking recipes (HTM) git clone git://src.adamsgaard.dk/recipes (DIR) Log (DIR) Files (DIR) Refs --- (DIR) commit fe0fb9ec43255fe98aabb2ca9742a795de30a11b (DIR) parent 6eb5585ddbf08c2850def9f7829be3840c508a2d (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 26 Aug 2021 19:39:04 +0200 add script to show recipes containing list of ingredients Diffstat: A cookwhat | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- (DIR) diff --git a/cookwhat b/cookwhat t@@ -0,0 +1,3 @@ +#!/bin/sh +awksrc="$(printf '/%s/ { print FILENAME }' "$@" | sed 's#,#/\&\&/#g')" +awk -v RS="." "${awksrc}" *.md | sort | uniq