On Thu, Dec 26, 2002 at 01:55:56PM -0800, Mythran wrote: [...] > grep -i warrior *.c; grep warrior *.h [...] More conveniently, 'grep -ci warrior *.[ch] |grep -v :0$' will get you a list of .c and .h files containing at least one instance of the word "warrior" in any combination of upper and lower case along with a count of how many times it appears in said file. Tested with GNU grep in bash, though most shells support [] wildcarding... -- { IRL(Jeremy_Stanley); PGP(9E8DFF2E4F5995F8FEADDC5829ABF7441FB84657); SMTP(fungi@yuggoth.org); IRC(fungi@irc.yuggoth.org#ccl); ICQ(114362511); AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(fungi@yuggoth.org); MUD(Nergel@srmud.net:2325); WWW(http://fungi.yuggoth.org/); } -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT