find.1 (52dbe1a0f419b8d45b4beed56b90ff48bc12e14c) | find.1 (26a329f49fb4537d598e93f16054fd9e16f7e677) |
---|---|
1.\" Copyright (c) 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.\" @(#)find.1 8.7 (Berkeley) 5/9/95 32.\" $FreeBSD$ 33.\" | 1.\" Copyright (c) 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.\" @(#)find.1 8.7 (Berkeley) 5/9/95 32.\" $FreeBSD$ 33.\" |
34.Dd November 8, 2021 | 34.Dd July 22, 2022 |
35.Dt FIND 1 36.Os 37.Sh NAME 38.Nm find 39.Nd walk a file hierarchy 40.Sh SYNOPSIS 41.Nm 42.Op Fl H | Fl L | Fl P --- 110 unchanged lines hidden (view full) --- 153.Nm 154to traverse the file hierarchies in lexicographical order, 155i.e., alphabetical order within each directory. 156Note: 157.Ql find -s 158and 159.Ql "find | sort" 160may give different results. | 35.Dt FIND 1 36.Os 37.Sh NAME 38.Nm find 39.Nd walk a file hierarchy 40.Sh SYNOPSIS 41.Nm 42.Op Fl H | Fl L | Fl P --- 110 unchanged lines hidden (view full) --- 153.Nm 154to traverse the file hierarchies in lexicographical order, 155i.e., alphabetical order within each directory. 156Note: 157.Ql find -s 158and 159.Ql "find | sort" 160may give different results. |
161.Pp 162For example, 163.Ql find -s 164puts a directory 165.Ql Ar foo 166with all its contents before a directory 167.Ql Ar foo. 168but 169.Ql "find | sort" 170puts the directory name 171.Ql Ar foo. 172before any string like 173.Ql Ar foo/bar 174because 175.Ql .\& 176goes before 177.Ql / 178in ASCII. In locales other than 179.Ar C 180results may vary more due to collate differences. |
|
161.It Fl x 162Prevent 163.Nm 164from descending into directories that have a device number different 165than that of the file from which the descent began. 166.Pp 167This option is equivalent to the deprecated 168.Ic -xdev --- 970 unchanged lines hidden --- | 181.It Fl x 182Prevent 183.Nm 184from descending into directories that have a device number different 185than that of the file from which the descent began. 186.Pp 187This option is equivalent to the deprecated 188.Ic -xdev --- 970 unchanged lines hidden --- |