From 733f0348f572d92e99d7f7fc3561721e6be8ff26 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sun, 21 Jan 2018 00:22:34 +0100 Subject: [PATCH] Fix sull'algoritmo di randomizzazione dei file. --- pistampa.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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