diff options
Diffstat (limited to 'Compiler in a Day/run.sh')
-rwxr-xr-x | Compiler in a Day/run.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Compiler in a Day/run.sh b/Compiler in a Day/run.sh new file mode 100755 index 0000000..1eebc4c --- /dev/null +++ b/Compiler in a Day/run.sh @@ -0,0 +1,8 @@ +#!/bin/sh +awk -f- *.md <<EOF | ruby +BEGIN { emit = 0 } + +/^\`\`\`\$/ { if(emit) print ""; emit = 0 } +{ if(emit) print } +/^\`\`\`ruby\$/ { emit = 1 } +EOF |