diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-10-11 11:46:05 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-10-11 11:46:05 +0000 |
commit | a266524fa01688e1c036cf0c5695b22836600d36 (patch) | |
tree | 827d993ee187a071ea63473d2788057cd06c249e /usr.bin/find | |
parent | f3094e416d84aed0e81ae1298a8659f816f037e3 (diff) |
in EXAMPLES:
- make the first example positive (we have enough using `!')
- remove second example (it is too similar to others)
- remove `-print' from all examples
- put the examples in a more logical order
- no need to escape dot, as otto points out i have been escaping
it needlessly for years ;(
ok otto
Diffstat (limited to 'usr.bin/find')
-rw-r--r-- | usr.bin/find/find.1 | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index 40139aef18b..2bf62dfb081 100644 --- a/usr.bin/find/find.1 +++ b/usr.bin/find/find.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: find.1,v 1.61 2006/10/11 10:03:28 jmc Exp $ +.\" $OpenBSD: find.1,v 1.62 2006/10/11 11:46:04 jmc Exp $ .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -508,39 +508,32 @@ arguments to .Nm find , i.e. they should be separated by whitespace. .Sh EXAMPLES -Print out a list of all the files whose names do not end in +Print out a list of all the files whose names end in .Dq \&.c : .Pp -.Dl "$ find / \e! -name '*.c' -print" -.Pp -Print out a list of all the files owned by user -.Dq wnj -that are newer than the file -.Dq ttt : -.Pp -.Dl "$ find / -newer ttt -user wnj -print" +.Dl "$ find / -name '*.c'" .Pp Print out a list of all the files which are not both newer than .Dq ttt and owned by .Dq wnj : .Pp -.Dl "$ find / \e! \e( -newer ttt -user wnj \e) -print" -.Pp -Find and remove all *.jpg files in the current working directory: -.Pp -.Dl "$ find . -name \e*\e.jpg -exec rm {} \e;" +.Dl "$ find / \e! \e( -newer ttt -user wnj \e)" .Pp Print out a list of all core files on local file systems: .Pp -.Dl "$ find / \e! -fstype local -prune -or -name '*.core' -print" +.Dl "$ find / \e! -fstype local -prune -or -name '*.core'" .Pp Find all files in .Pa /usr/src ending in a dot and single digit, but skip directory .Pa /usr/src/gnu : .Pp -.Dl "$ find /usr/src -path /usr/src/gnu -prune -or -name \e*\e.[0-9]" +.Dl "$ find /usr/src -path /usr/src/gnu -prune -or -name \e*.[0-9]" +.Pp +Find and remove all *.jpg files in the current working directory: +.Pp +.Dl "$ find . -name \e*.jpg -exec rm {} \e;" .Sh SEE ALSO .Xr chflags 1 , .Xr chmod 1 , |