Difference between revisions 507784 and 507785 on knwiki

{{See Wiktionary|a computer utility}}
{{lowercase|title=find}} 
{{For|the EP by Hidden in Plain View|Find (EP)}}

The <code>'''find'''</code> program is a [[search utility]], mostly found on [[Unix-like]] platforms. It searches through one or more [[directory (file systems)|directory]] [[tree (computing)|tree(s)]] of a [[filesystem]], locating [[Computer file|file]]s based on some user-specified criteria. By default, <code>find</code> returns all files b(contracted; show full)
 /home/jsmith/scripts/title:USER=$LOGNAME

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.


Example of search for the investment company in the Google Search in the Internet
 copenhagen 25-30% daily for 5 days

===Search for a files owned by a user===

 find . -user <userid>

==See also==

* [[searchmonkey]], an alternative search tool using the [[Gtk]] front-end

==External links==
* [http://www.gnu.org/software/findutils/ GNU Findutils] - Comes with the [[xargs]] and [[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]

{{unix commands}}

[[Category:Unix software]]
[[Category:Searching]]

[[de:Find]]
[[es:Find]]
[[pl:Find]]
[[pt:Find]]
[[ru:Find]]