Re: OT: Unix Find Question

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57422
interpreted = N
texte = Clint Davis wrote: > I have a VERY basic understanding of the unix find command, but I need to do > something that seems a little complex. I want to find all text files in the > current directory that were modified since 4/14/04 AND contain a specific > email address. I figured this might require both find and grep, but I wasn't > sure. find . \ -mtime -7 \ -exec fgrep -l "address@domain.tld" \{} \; which translates as all files in the currect directory or below, which were modified less than 7*24 hours ago, and which contain the requested address. John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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: Unix Find Question ( John Peacock 2004)
  2. Re: OT: Unix Find Question ( Clint Davis 2004)
  3. Re: OT: Unix Find Question ( John Peacock 2004)
  4. Re: OT: Unix Find Question ( Clint Davis 2004)
  5. Re: OT: Unix Find Question ( John Peacock 2004)
  6. Re: OT: Unix Find Question ( Clint Davis 2004)
  7. Re: OT: Unix Find Question ( John Peacock 2004)
  8. OT: Unix Find Question ( Clint Davis 2004)
Clint Davis wrote: > I have a VERY basic understanding of the unix find command, but I need to do > something that seems a little complex. I want to find all text files in the > current directory that were modified since 4/14/04 AND contain a specific > email address. I figured this might require both find and grep, but I wasn't > sure. find . \ -mtime -7 \ -exec fgrep -l "address@domain.tld" \{} \; which translates as all files in the currect directory or below, which were modified less than 7*24 hours ago, and which contain the requested address. John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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/ John Peacock

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:

View Source from cache (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WebCat website for developers and hosters (2001) [OT] 'Email this story to a friend' (2003) WebCat2 - many [carts] on one template page? (1997) authenticating a second user (1997) RE: Formulas.db + Users.db (1997) Projects & Contractors (1997) WebCat2b12--[searchstring] bug (1997) suggestions for a good text editor on windows? (2005) RedHat 9 & WebCatalog 4.5 (2004) Exclamation point (1997) Was 5.0 Pricing, now Sandbox versus Website and ruminating (2003) cart info (1998) The Box - (2002) Protect (1997) File Maker Pro Value List Field Export Proplem... (2000) Typhoon Rev. and PCS store problems (1999) Multiple prices (1997) WebCat2 - Getting to the browser's username/password data (1997)