| You are here: SillyDog701 > UNIX Guide >SillyDog701 > UNIX Guide > (index) |
You can also use the find command to find a file and then carry out a command on that file. To do this use the command:
find pathname -name filename -print -exec command {}\;
To be prompted for confirmation before the command is executed use the command:
find pathname -name filename -print -ok command {}\;
The command must be followed by a \ (backslash) and a ; (semi-colon). The {} (pair of braces) substitute the pathname of the file that is found as an argument to the command.
UNIX Guide home |
search |
index
| Page URL: http://sillydog.org/unix/ [SillyDog701] [Netscape] [MozInfo701] [MacCentre701] [UNIX Guide] [AntTunes701][Forums] [Search] [Change Log] [Feedback] [About Us] [Sitemap] This UNIX Guide maintained by SillyDog701, portion of this Guide is based on UNIXhelp. UNIXhelp is copyright University of Edinburgh. This page was last modified on 14 March, 2006 |
support MozInfo701 and SillyDog701 |