SMOLNET PORTAL home about changes
tadd script to show recipes containing list of ingredients - recipes - various cooking recipes
(URL) git clone git://src.adamsgaard.dk/recipes (git://src.adamsgaard.dk)
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit fe0fb9ec43255fe98aabb2ca9742a795de30a11b
(DIR) parent 6eb5585ddbf08c2850def9f7829be3840c508a2d
(URL) Author: Anders Damsgaard <anders@adamsgaard.dk> (mailto://)
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
Response: application/gopher-menu
Original URLgopher://adamsgaard.dk/1/src/recipes/commit/fe0fb9ec43255...
Content-Typeapplication/gopher-menu; charset=utf-8