From 13cac518091210f5c6f99efcadaf3bc96a12fc61 Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Fri, 7 Apr 2017 12:48:14 +0200 Subject: [PATCH] stat pour beaucoup fichiers --- TipsShell.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TipsShell.md b/TipsShell.md index fb9c6b31..4be9ee2e 100644 --- a/TipsShell.md +++ b/TipsShell.md @@ -140,6 +140,11 @@ $ iwatch $ stat -c %U /tmp/* | sort | uniq -c | sort -n ~~~ +Si «too arguments pour stat» (version bien plus lente) : +~~~ +$ find /tmp -exec stat -c %U '{}' \; | sort | uniq -c | sort -n +~~~ + ### Comparer deux répertoires à travers SSH Générique :