Skip to content

Instantly share code, notes, and snippets.

@ababino
Created March 11, 2015 20:05
Show Gist options
  • Save ababino/9307bde3e4a594acf8e5 to your computer and use it in GitHub Desktop.
Save ababino/9307bde3e4a594acf8e5 to your computer and use it in GitHub Desktop.
bash utils
#!/bin/bash
declare -a arr=('CB-5T-Mi-R-76243'
'CB-5T-Mi-R-37100'
'CB-5T-Mi-R-81762'
'CB-5T-Mi-R-24660');
for i in ${arr[@]};
do
echo $i;
pdflatex "\def\id{$i} \input{tarea.tex}" >> /dev/null;
lpr tarea.pdf
lpr ./09-conditional2/repartidor/repartidor0.pdf
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment