GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-patterns/append_output.sh at master · xiaopeng163/python-patterns Expand file tree/ Copy pathappend_output.shMore file actions executable file ·12 lines (9 loc) · 306 Bytes / Copy pathappend_output.shFile metadata and controlsexecutable file ·12 lines (9 loc) · 306 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 #!/bin/bash set -e src=$(sed -n -e '/### OUTPUT ###/,$!p' "$1") output=$(python "$1" | sed 's/^/# /') # These are done separately to avoid having to insert a newline, which causes # problems when the text itself has '\n' in strings echo "$src" > $1 echo -e "\n### OUTPUT ###" >> $1 echo "$output" >> $1 |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |