manual: Add example query for omitting a directory.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 2 Jun 2016 13:11:59 +0000 (15:11 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 24 Jun 2016 10:55:32 +0000 (12:55 +0200)
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

index 78d7e22fd78b591cce331b48a27a3828acc6aa72..79f14786257bb617621769af2b3587ff52fd0224 100644 (file)
--- 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)