->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.

t a y l o r@l i n u x b o x.c o m

© 1993-1998 Christopher C. Taylor