->Title Page
-->File Structure
-->Online Manual
-->Basic Commands
-->Additional Commands
-->Login files
-->Special characters
-->Miscellaneous Tips
--->Strange names
->Advanced wildcards
--->Terminal input
--->Remote shell
--->Loops in scripts
--->More tricks
-->Things to try
->Vi editor
->Mirror sites
->Further reading

[ Up ]

Unix ---> Advanced wildcards

Let's say we want to perform some command on a set of files in the working directory and all the directories below it. What if there was a Hewlett-Packard television advertisement that asked, "What if I had a slew of subdirectories containing mounds of C source code, and I wanted to copy all of the library files (files with a .h extension) into a separate directory called library. How could I do it?" If you had read the next line, you would respond immediately with the following:1

    cp `find . -name '*.h' -print` library

Site Statistics

1 That is, if you talk to your television.

Find this site useful? Want to give something back?

t a y l o r@l i n u x a v e.n e t

© 1993-2000 Christopher C. Taylor