projects
/
sysadmin-cookbook
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
714abc1
)
small helper to cook the recepie (start prompt parts in shell)
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 13 May 2009 18:31:33 +0000
(18:31 +0000)
committer
Dobrica 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]
patch
|
blob
diff --git a/bin/cook.sh
b/bin/cook.sh
new file mode 100755
(executable)
index 0000000..
ab1c665
--- /dev/null
+++ b/
bin/cook.sh
@@ -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 "{}"
+