summaryrefslogtreecommitdiff
path: root/tools/offsetshape.sh
blob: 928a75954cc9b8b48b93f3036e456c8eb0e7cf1b (plain) (blame)
1
2
3
4
5
#!/bin/sh
#objectname addshape color points_in_shape
echo offsetshape: $1 $2 $3
awk '{ for(i=4;i<=(4+($4*3));i+=3){$i+='"$1"';$(i+1)+='"$2"';$(i+2)+='"$3"';} print $0;}'