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:

    
  1. Re: OT Grep Help ( Donovan Brooke 2008)
  2. Re: OT Grep Help ( Marc Thompson 2008)
  3. Re: OT Grep Help ( Donovan Brooke 2008)
  4. Re: OT Grep Help ( Marc Thompson 2008)
  5. OT Grep Help ( Donovan Brooke 2008)
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:

carriage returns in data (1997) [ShowNext] feature in 2.0 (1997) WC2.0 Memory Requirements (1997) [WebDNA] CentOS Permissions (2009) WC2f3 (1997) [shell]? (2000) Re2: frames & carts (1997) webcat nt (1997) Looking for a Manual (1997) Emailer prefs in two places ... (1997) WebCat2 beta 11 - new prefs ... (1997) can WC render sites out? (1997) [isfolder] and [filename] (1997) [WebDNA] LowRam (2012) math on date? (1997) FEATURE REQUEST: (was: Summarizing results. Is there ashortcut? (1999) [REPLACE] inside [FOUNDITEMS] (1998) RE: type 2 errors with ssl server (1997) Smith Micro - no competition (2000) Sample Tearoom Search Error (1997)