[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: orientation of simplex-link



Huang Hai wrote:
> 
> Hi,
> 
> Thanks a lot. I do use grep to find some keywords, but I don't know how to
> grep into one or more subdirectories. You know, there is a lot of
> subdirectories in ~ns/tcl.
> 

Try:

find . -name *.c -print -exec grep your_pattern_here {} \; | less

refer to the man-page of find for more info. Also refer to ctags
or etags which can create tags files for emacs or vi which support
a quick hypertext-like access to functions, vars ...

Regards

	HP

-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|  Hans-Peter Huth                         Phone: +49 89 636 430 71 |
|  Siemens AG, Dept. ZT IK 2               FAX:   +49 89 636 51115  |
|  Otto-Hahn-Ring 6          E-mail: [email protected]|
|D-81730  Munich       http://alpha.mchp.siemens.de (insiders only) |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dagegen!
------------------------ cut here 8< --------------------------------