small helper to cook the recepie (start prompt parts in shell)
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 13 May 2009 18:31:33 +0000 (18:31 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 13 May 2009 18:31:33 +0000 (18:31 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@65 191e9f34-6774-4a6d-acfc-7664dacd4a2a

bin/cook.sh [new file with mode: 0755]

diff --git a/bin/cook.sh b/bin/cook.sh
new file mode 100755 (executable)
index 0000000..ab1c665
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# small helper to cook the recepie (start prompt parts in shell)
+
+test -e $1 || ( echo "usage: $0 recepises/something"; exit )
+
+cat $1
+
+grep '[a-z]*@[a-z]*:[^$#]*[$#]' $1 | cut -d\# -f 2 | xargs -i sh -x -c "{}"
+