On Tue, 2012-01-10 at 08:08 +0100, res wrote: > Once you started to actually modify source files you probably want to > exclude backup files as well; to accomplish that, pass ‘--exclude=*~’ on > the command line.
I do the file selection by using the 'find' command instead. I also use
the 'H' switch of grep/egrep in order to get the file name along with
the relevant code line:
find . -name "*.cpp" -exec egrep -H "csMin.\(|csMax.\(" "{}" ";" | less
I put that in a small script (in attachment of this mail), and it's even
easier:
_ffind "csMin.\(|csMax.\("
or more explicitely:
_ffind . cpp "csMin.\(|csMax.\("
_ffind.sh
Description: application/shellscript
------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[email protected]?subject=unsubscribe
