Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (7 sloc) 249 Bytes
#!/bin/bash
[ -f $1-* ] || exit 1
echo ============= $1-* ==============
runcmd() { [ "$ans" == "n" ] || "$@"; }
perl -pe 's/.*/echo;read -s -n 1 -p "$&" ans\necho\nruncmd $&/ if /./ and /^[^^# ]/;
s/^\^//;' < $1-* > run.out
. ./run.out