diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2004-02-24 07:20:39 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2004-02-24 07:20:39 +0000 |
commit | 2caf1458a2907594511c6652560e366178f85bc8 (patch) | |
tree | 21eefd96893d76703303b195eb8fe69669ed2811 /usr.bin/find | |
parent | f3d00613d4f59f0d040e1c9d5eaa0656cc088426 (diff) |
- remove double spaces in the examples
- `W' before `X'
- sync usage()
ok millert@
Diffstat (limited to 'usr.bin/find')
-rw-r--r-- | usr.bin/find/find.1 | 22 | ||||
-rw-r--r-- | usr.bin/find/main.c | 6 |
2 files changed, 14 insertions, 14 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index 48fd79a2008..5b5ef078df6 100644 --- a/usr.bin/find/find.1 +++ b/usr.bin/find/find.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: find.1,v 1.41 2004/01/23 19:38:13 millert Exp $ +.\" $OpenBSD: find.1,v 1.42 2004/02/24 07:20:38 jmc Exp $ .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -39,7 +39,7 @@ .Nd walk a file hierarchy .Sh SYNOPSIS .Nm find -.Op Fl dHhLXxW +.Op Fl dHhLWXx .Op Fl f Ar file .Ar file Op Ar ... .Op Ar expression @@ -100,6 +100,10 @@ returned for each symbolic link to be those of the file referenced by the link, not the link itself. If the referenced file does not exist, the file information and type will be for the link itself. +.It Fl W +Let +.Nm +take whiteouts into account when scanning directories. .It Fl X Permit .Nm @@ -130,10 +134,6 @@ Prevents .Nm from descending into directories that have a device number different than that of the file from which the descent began. -.It Fl W -Let -.Nm -take whiteouts into account when scanning directories. .El .Sh PRIMARIES .Bl -tag -width Ds @@ -495,27 +495,27 @@ to be a separate argument to .Sh EXAMPLES The following examples are shown as given to the shell: .Bl -tag -width findx -.It Li "$ find / \e! -name \*q*.c\*q -print" +.It Li "$ find / \e! -name '*.c' -print" Print out a list of all the files whose names do not end in .Dq \&.c . -.It Li "$ find / -newer ttt -user wnj -print" +.It Li "$ find / -newer ttt -user wnj -print" Print out a list of all the files owned by user .Dq wnj that are newer than the file .Dq ttt . -.It Li "$ find / \e! \e( -newer ttt -user wnj \e) -print" +.It Li "$ find / \e! \e( -newer ttt -user wnj \e) -print" Print out a list of all the files which are not both newer than .Dq ttt and owned by .Dq wnj . -.It Li "$ find / \e( -newer ttt -or -user wnj \e) -print" +.It Li "$ find / \e( -newer ttt -or -user wnj \e) -print" Print out a list of all the files that are either owned by .Dq wnj or that are newer than .Dq ttt . -.It Li "$ find / \e! -fstype local -prune -or -name '*.core' -print" +.It Li "$ find / \e! -fstype local -prune -or -name '*.core' -print" Print out a list of all core files on local file systems. .El .Sh SEE ALSO diff --git a/usr.bin/find/main.c b/usr.bin/find/main.c index 68a93604372..ee1e0049829 100644 --- a/usr.bin/find/main.c +++ b/usr.bin/find/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.17 2003/09/26 22:22:26 tedu Exp $ */ +/* $OpenBSD: main.c,v 1.18 2004/02/24 07:20:38 jmc Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -31,7 +31,7 @@ #ifndef lint /*static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: main.c,v 1.17 2003/09/26 22:22:26 tedu Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.18 2004/02/24 07:20:38 jmc Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -141,6 +141,6 @@ static void usage(void) { (void)fprintf(stderr, - "usage: find [-dHhLXxW] [-f file] file [...] [expression]\n"); + "usage: find [-dHhLWXx] [-f file] file [...] [expression]\n"); exit(1); } |