diff --git a/IT/linux/shell.md b/IT/linux/shell.md index e5cd252..1848264 100644 --- a/IT/linux/shell.md +++ b/IT/linux/shell.md @@ -56,3 +56,14 @@ fi |-r -w -x | test permition| |$a -nt $b| $a plus récent| |$a -ot $b| $a plus vieux| + +## Supprimer les Dossiers contenant 1 élement + +``` +IFS=$'\n';for i in $(ls) do  ✔  10022  18:29:32  + if [ $(ls $i|wc|awk '{print $1}') = 1 ] +then +rm -r $i +fi + +```