find /<directory name> -type f | grep .h , where <directory name> is the path and directory to search.
To use that information in a loop, such as a for-next loop:
for i in $(find /<directory name> -type f | grep .h); do something; done
Last edited by bigrigdriver; 03-14-2008 at 11:17 AM.
|