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

grepping the *** out of it



Ralf Corsepius wrote:

>
>
>Have a look at NAME__MAIN in gcc/config/rs6000/eabi.*
>
>=> powerpc-eabi always uses __eabi instead of __main, cf. 
>grep NAME__MAIN gcc/* 
>and 
>grep NAME__MAIN gcc/config/*/*
>
BTW: Do you know 'rgrep' ? Ever since I discovered that wonderful utility
grep x/*/* is history for me...

rgrep -rl  <regexp>  <dir>

recursively greps directories. (Later versions of 'grep' also have the 
-r option
but rgrep also allows gives you '-R <filename>' to restrict the search 
to certain
filenames [e.g. use -R '*.h' to grep headers only[).
Perhaps the program I most often use these days ;-)

-- T.