Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

15 righe
279 B

  1. #!/usr/bin/env bash
  2. while true
  3. do
  4. COUNT=$(find "$1" -type f |wc -l)
  5. if [ $COUNT -ne 0 ] ; then
  6. echo "Directory $1 is not empty ($COUNT files remaining). Waiting 5 seconds..."
  7. sleep 5
  8. else
  9. echo "Directory $1 is empty!"
  10. break
  11. fi
  12. done