diff --git a/pistampa.sh b/pistampa.sh index 3827385..72874d3 100644 --- a/pistampa.sh +++ b/pistampa.sh @@ -19,10 +19,10 @@ spegnimento=100 # funzioni stampa() { # Questa funzione usa l'opzione -R di sort per randomizzare l'output. - #lpr $(ls ${cartella} | sort -R | tail -n1) + #lpr $(find ${cartella} -type f | sort -R | tail -n1) # Debug - cat $(ls ${cartella} | sort -R | tail -n1) + cat $(find ${cartella} -type f | sort -R | tail -n1) } # Inizializzazione