Posted By

olive on 06/09/08


Tagged


Versions (?)

Tester si un repertoire est vide


 / Published in: Bash
 

  1. cd /data2/backup/
  2.  
  3. if [ -z `ls * 2>/dev/null` ]; then
  4. echo "vide"
  5. else
  6. echo "non vide"
  7. fi

Report this snippet  

You need to login to post a comment.