summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-03-29 17:46:45 -0500
committerepoch <epoch@hacking.allowed.org>2018-03-29 17:46:45 -0500
commitdc934a26acb3c4f7ab98f689ac9251650346f99d (patch)
treefff0e3f4080b505944deda51dfbf7b6a70c6f8ff
parent43e3c0e1478deb3fd76eed35f4a275c66eb73c3b (diff)
downloadhackvr-dc934a26acb3c4f7ab98f689ac9251650346f99d.tar.gz
hackvr-dc934a26acb3c4f7ab98f689ac9251650346f99d.zip
added comments to offsetshape.sh
-rwxr-xr-xtools/offsetshape.sh2
1 files changed, 2 insertions, 0 deletions
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;}'