<div dir="ltr">Un vieux problème.<div><br></div><div>je cherche a envoyer un fichier postscript qui contient une première ligne (Nom d'un jeux) et la deuxieme ligne un code barre. sur une imprimante Brother QL-1060N</div><div><br></div><div><div>#!/bin/bash</div><div><br></div><div># Data file</div><div>input_filename1="data-A.txt"</div><div># data-A.txt contient le nom du jeux</div><div>input_filename2="data-B.txt"</div><div><br></div><div># data-A.txt contient le code barre</div><div>output_filename1="data-A.ps"</div><div>output_filename2="data-B.ps"</div><div>output_fileEnd="data-C."</div><div><br></div><div>a2ps ${input_filename1} -R -B -o${output_filename1}</div><div><br></div><div># Looping on all the lines of the file</div><div>while IFS=$'\n' read line</div><div>do</div><div>  barcode -b "${line}" -E -g 150x50 > ${output_filename2}</div><div>done < $input_filename2</div><div>psmerge -o ${output_fileEnd} ${output_filename1} ${output_filename2}  </div></div><div><br></div><div><br></div><div>Je doit faire quelques erreurs mais n'ai pas trop l'habitude de bash</div><div>Si quelqu'un peux passer quelques minutes pour me donner un coup de main bien venue...</div><div><br clear="all"><div><div class="gmail_signature">A+ Dominique-Georges Branciard</div></div>
</div></div>