Difference between revisions 507789 and 507790 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) ===Search several directories=== find local /tmp -name mydir -type d -print This searches for directories named ''mydir'' in the ''local'' subdirectory of the current working directory and the ''/tmp'' directory. ===Ignore errors=== If you're doing this as a user other than root, you might want to ignore permission denied (and any other) errors with this:. Since errors are printed to [[stderr]], they can be suppressed by redirecting the output to /dev/null. The following example shows how to do this in the bash shell: find / -name "myfile" -type f -print 2>/dev/null ===Find any one of differently named files=== find . ( -name "*jsp" -or -name "*java" ) -type f -ls (contracted; show full)[[Category:Searching]] [[de:Find]] [[es: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=507790.
![]() ![]() 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.
|