Re: OT Grep Help

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 69669
interpreted = N
texte = Try using the grep within a listfiles context? This will recursively traverse all the files in a given directory keyed on [IsFile]. Marc Donovan Brooke wrote: > Hello, > > ..was wondering if anyone is out there that knows a lil grep. > > I'm trying to recursively search a directory/s for a pattern.. then > list the filename, linenumber, then the line. > > I have the latter part working.. in other words, I can list > the filename, linenumber then the string, but I can't get > the recursive directories working. > > This works for one file: > > grep -Hin -e [pattern] [filename] > > How do you tweek this to do many files within a directory? > > Donovan > > > > > -- ------------------------------------------- Marc Thompson Software Engineer Office of Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
Try using the grep within a listfiles context? This will recursively traverse all the files in a given directory keyed on [IsFile]. Marc Donovan Brooke wrote: > Hello, > > ..was wondering if anyone is out there that knows a lil grep. > > I'm trying to recursively search a directory/s for a pattern.. then > list the filename, linenumber, then the line. > > I have the latter part working.. in other words, I can list > the filename, linenumber then the string, but I can't get > the recursive directories working. > > This works for one file: > > grep -Hin -e [pattern] [filename] > > How do you tweek this to do many files within a directory? > > Donovan > > > > > -- ------------------------------------------- Marc Thompson Software Engineer Office of Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Marc Thompson

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2 several catalogs? (1997) Where's Cart Created ? (1997) OT - Mail Solution (2002) About WebCatalog and iTools 7 (2003) Encyption mail was Suggestions for Topics ... (1998) Mac v. NT (1998) Execute Applescript (1997) oops private message leaked into talk list (1997) formatting a number (1999) Re:1 cent answer? (1998) Add htmlarea 3 to SiteBuilder (2004) many-to-one problem (1998) DNS Lookup 2 (2000) Cumulative Shipping charge calculations - your help please. (1997) Price Not Appearing (2000) The Guru Speaks-very long reply (1998) WCS Newbie question (1997) My web page only... (2003) REDIRECT (2001) b18 problem on NT 4.0 (1997)