11.04.2013 Views

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Capitolo 33. Miscellanea<br />

exit $E_BADARGS<br />

fi<br />

if [ ‘expr $2 + $AMPIEZZA_RET + 1‘ -gt $COL_T ]; then<br />

exit $E_ERRARG<br />

fi<br />

if [ $3 -lt 1 ] || [ $4 -lt 1 ]; then<br />

exit $E_ERRARG<br />

fi # Fine delle verifiche degli argomenti.<br />

vis_car(){ # Funzione all’interno <strong>di</strong> una funzione.<br />

echo -e "\E[${1};${2}H"$3<br />

}<br />

echo -ne "\E[3${5}m" # Imposta il colore del rettangolo,<br />

#+ se specificato.<br />

# inizia il <strong>di</strong>segno del rettangolo<br />

conto=1 # Disegna le righe verticali<br />

for (( r=$1; conto

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!