From dc934a26acb3c4f7ab98f689ac9251650346f99d Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 29 Mar 2018 17:46:45 -0500 Subject: added comments to offsetshape.sh --- tools/offsetshape.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/offsetshape.sh') diff --git a/tools/offsetshape.sh b/tools/offsetshape.sh index 3362e3b..f3ceabd 100755 --- a/tools/offsetshape.sh +++ b/tools/offsetshape.sh @@ -1,3 +1,5 @@ #!/bin/sh +#format of lines read from stdin: +# $1 $2 $3 $4 <-- variables in awk #objectname addshape color points_in_shape awk '{ for(i=5;i<=(4+($4*3));i+=3){$i+='"$1"';$(i+1)+='"$2"';$(i+2)+='"$3"';} print $0;}' -- cgit v1.2.3