| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: find.1,v 1.90 2020/11/01 16:34:02 kim Exp $ | | 1 | .\" $NetBSD: find.1,v 1.91 2020/11/01 16:47:29 wiz Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1990, 1993 | | 3 | .\" Copyright (c) 1990, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to Berkeley by | | 6 | .\" This code is derived from software contributed to Berkeley by |
7 | .\" the Institute of Electrical and Electronics Engineers, Inc. | | 7 | .\" the Institute of Electrical and Electronics Engineers, Inc. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -814,27 +814,27 @@ Print out a list of all the files that a | | | @@ -814,27 +814,27 @@ Print out a list of all the files that a |
814 | .Dq wnj | | 814 | .Dq wnj |
815 | or that are newer than | | 815 | or that are newer than |
816 | .Dq ttt . | | 816 | .Dq ttt . |
817 | .It Li "find / \e( \-newer ttt \-or \-user wnj \e) \-exit 1" | | 817 | .It Li "find / \e( \-newer ttt \-or \-user wnj \e) \-exit 1" |
818 | Return immediately with a value of 1 if any files are found that are either | | 818 | Return immediately with a value of 1 if any files are found that are either |
819 | owned by | | 819 | owned by |
820 | .Dq wnj | | 820 | .Dq wnj |
821 | or that are newer than | | 821 | or that are newer than |
822 | .Dq ttt , | | 822 | .Dq ttt , |
823 | but do not print them. | | 823 | but do not print them. |
824 | .It Li "find / \e( \-newer ttt \-or \-user wnj \e) \-ls \-exit 1" | | 824 | .It Li "find / \e( \-newer ttt \-or \-user wnj \e) \-ls \-exit 1" |
825 | Same as above, but list the first file matching the criteria before exiting | | 825 | Same as above, but list the first file matching the criteria before exiting |
826 | with a value of 1. | | 826 | with a value of 1. |
827 | .It Li "find . \-type f \-exec sh \-c 'file=\*[q]$1\*[q]; ...;' - {} \;" | | 827 | .It Li "find . \-type f \-exec sh \-c 'file=\*[q]$1\*[q]; ...;' - {} \e;" |
828 | Perform an arbitrarily complex shell command for every file. | | 828 | Perform an arbitrarily complex shell command for every file. |
829 | .El | | 829 | .El |
830 | .Sh SEE ALSO | | 830 | .Sh SEE ALSO |
831 | .Xr chflags 1 , | | 831 | .Xr chflags 1 , |
832 | .Xr chmod 1 , | | 832 | .Xr chmod 1 , |
833 | .Xr locate 1 , | | 833 | .Xr locate 1 , |
834 | .Xr xargs 1 , | | 834 | .Xr xargs 1 , |
835 | .Xr stat 2 , | | 835 | .Xr stat 2 , |
836 | .Xr fts 3 , | | 836 | .Xr fts 3 , |
837 | .Xr getgrent 3 , | | 837 | .Xr getgrent 3 , |
838 | .Xr getpwent 3 , | | 838 | .Xr getpwent 3 , |
839 | .Xr strmode 3 , | | 839 | .Xr strmode 3 , |
840 | .Xr re_format 7 , | | 840 | .Xr re_format 7 , |