From dcdfc01e9f9edfe6e11b5aab1ee582174086a2b3 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 2 Jun 2016 15:11:59 +0200 Subject: [PATCH] manual: Add example query for omitting a directory. The --pattern option to match paths against regular expressions can be very useful, so let's add a simple example which prepends the pattern by an exclamation mark to exclude a directory from the file list. --- adu.1.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/adu.1.inc b/adu.1.inc index 78d7e22..79f1478 100644 --- a/adu.1.inc +++ b/adu.1.inc @@ -23,6 +23,10 @@ mysql: The same, using short options: .IP $ adu -Sd /root/adu-var -s '-m user_list -u root -u mysql -l 5' +.PP +Again the same, but omitting /var/cache: +.IP + $ adu -Sd /root/adu-var -s '-m user_list -u root -u mysql -l 5 -p !^cache/' [SEE ALSO] .BR du (1) -- 2.39.2