summaryrefslogtreecommitdiff
path: root/tools/offsetshape.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/offsetshape.sh')
-rwxr-xr-xtools/offsetshape.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/offsetshape.sh b/tools/offsetshape.sh
new file mode 100755
index 0000000..a6bb595
--- /dev/null
+++ b/tools/offsetshape.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+#objectname addshape points_in_shape
+echo offsetshape: $1 $2 $3
+awk '{ for(i=4;i<=(3+($3*3));i+=3){$i+='"$1"';$(i+1)+='"$2"';$(i+2)+='"$3"';} print $0;}'
+