From 61e01a66110f22de841e39a2c16c700ffd0d6a6f Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Tue, 21 May 2013 00:54:28 +0300 Subject: [PATCH] Coz takhle vyuzit GNU Barcode? --- barcodes.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 barcodes.sh diff --git a/barcodes.sh b/barcodes.sh new file mode 100644 index 0000000..60d3530 --- /dev/null +++ b/barcodes.sh @@ -0,0 +1,13 @@ +#!/bin/bash +#Jentak pro inspiraci, prijde mi to elegantnejsi nez ten python... ~harvie + +#Rozmery stitku se upravuji tady: +TABLE='-p A4 -t 3x8+10+0-10-0' +MAX=$(( 3*8-1 )) + +#Dalsi konfigurace +GEOMETRY='' +ENCTYPE=code128b +PREFIX="$(date +%s)BRM" + +barcode -e $ENCTYPE $GEOMETRY $TABLE $(for i in $(seq 0 $MAX); do echo -b $PREFIX$i; done)