X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=blobdiff_plain;f=combine.bash;fp=combine.bash;h=d46217cf0859560be47d0f565c9116896af674fa;hp=0000000000000000000000000000000000000000;hb=5c9ec279c15c135b7e84501a5b2426e8f06fde60;hpb=b3436798065033afc95e9b0c3e7952b9d447d818 diff --git a/combine.bash b/combine.bash new file mode 100644 index 0000000..d46217c --- /dev/null +++ b/combine.bash @@ -0,0 +1,11 @@ +#!/bin/bash + +cat "$1" | while read x +do + if [ "${x:0:4}" = 'cat ' ] + then + cat "${x:4}" || exit $? + else + echo "$x" + fi +done