Difference between revisions 507794 and 507795 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 [[directory (file systems)|directory]] [[search utility]], mostly found on [[Unix-like]] platforms. It searches through one or more 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 a(contracted; show full)in <code>.mp3</code>, the command <code>chmod 744 {}</code> is executed replacing <code>{}</code> with the name of the file. The semicolon (backslashed to avoid the shell interpreting it as a command separator) indicates the end of the command. Permission <code>744</code>, usually shown as <code>rwxr--r--</code>, gives the file owner full permission to read, write, and execute the file, while other users have read-only access. In some shells, the '{}'<code>{}</code> must be quoted. ===Search for a string=== This command will search for a string in all files from the /tmp directory and below: find /tmp -exec grep "search string" '{}' /dev/null \; -print The <tt>[[/dev/null]]</tt> argument is used to show the name of the file before the text that is found. Without it, only the text found is printed. An equivalent mechanism is to use the "-H" or "--with-filename" option to grep: (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=507795.
![]() ![]() 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.
|