diff options
Diffstat (limited to 'bin/offsetshape.sh')
-rwxr-xr-x | bin/offsetshape.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/offsetshape.sh b/bin/offsetshape.sh new file mode 100755 index 0000000..f3ceabd --- /dev/null +++ b/bin/offsetshape.sh @@ -0,0 +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;}' |