Difference between revisions 507814 and 507815 on knwiki{{otheruses}} {{lowercase|title=find}} The <code>'''find'''</code> program is a [[directory (file systems)|directory]] [[search utility]], mostly found on [[DOS]], [[Microsoft Windows|Windows]] and [[Unix-like]] platforms. It searches through one or more directory [[tree (computing)|trees]] of a [[filesystem]], locating [[Computer file|file]]s based on some user-specified criteria. By default, <code>find</code> returns all files below the current [[working directory]]. Further, <code>find</code> allows the user to specify an action to be taken on each matched file. Thus, it is an extremely powerful program for applying actions to many files. It also supports [[Regular expressi(contracted; show full) Example of search for the string "ERROR" in all xml files in the current directory and all sub-directories find . -name "*.xml" -exec grep "ERROR" '{}' \; -print The double quotes (" ") surrounding the search string and single quotes (<nowiki>' '</nowiki>) surrounding the braces are optional in this example, but needed to allow spaces and other special characters in the string. ===Search for all files owned by a user=== ⏎ ⏎ find . -user <userid> ==See also== ⏎ * *[[GNU_locate|locate]], a Unix search tool based on a prebuilt database therefore faster than find⏎ *[[List of Unix programs]] *[[List of DOS commands]] ==External links== * [http://www.gnu.org/software/findutils/ GNU Findutils] - Comes with the [[xargs]] and [[GNU locate|locate]] commands. * [http://www.gnu.org/software/findutils/manual/html_mono/find.html Official webpage for GNU find] * [http://www.linuxmanpages.com/man1/find.1.php Linux find(1)] [[manpage]] * [http://unixhelp.ed.ac.uk/CGI/man-cgi?find Unix man page] * [http://www.enciclopedia.galeon.com/find.html Exercises "Find"] {{uUnix commands}}⏎ {{Windows commands}} [[Category:Unix software]] [[Category:Searching]] [[de:Find]] [[es:Find]] [[hu:Find]] [[ja:Find]] [[pl:Find]] [[pt:Find]] [[ru:Find]] All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://kn.wikipedia.org/w/index.php?diff=prev&oldid=507815.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|