From 4254bfee553643a6fa16f604271e880fc49cda99 Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Fri, 22 Jun 2018 10:29:32 +0200 Subject: [PATCH] OLD --- TipsShell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TipsShell.md b/TipsShell.md index 12fc5033..b55be263 100644 --- a/TipsShell.md +++ b/TipsShell.md @@ -272,7 +272,7 @@ PATH_TO_WATCH='/var'; RESULT_FILE='list_max_inode.txt'; TMP=$(mktemp) #Regarder dans le premier niveau #OLD : find $PATH_TO_WATCH -type d -printf '%p\n' | sed 's/"/\\"/g' | sed 's/^\(.*\)$/"\1"/' | while read i; do echo $(echo $i | xargs ls -a | wc -l) $i; done | sort -n > $TMP #OLD : export IFS=" -"; for i in $(find $PATH_TO_WATCH -type d); do echo $(ls -a | wc -l) $i; done | sort -n > $TMP +#"; for i in $(find $PATH_TO_WATCH -type d); do echo $(ls -a | wc -l) $i; done | sort -n > $TMP for i in $(du -x $PATH_TO_WATCH | awk '{print $2}'); do echo $(ls -1 -a $i| wc -l) $i; done | sort -n > $TMP #compter dans les sous niveaux