Re: OT: Unix Find Question

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57428
interpreted = N
texte = Clint Davis wrote: > ...one other twist... > > How can I move the found files to another location? > find . \ -mtime -7 \ -exec fgrep -l "address@domain.tld" \{} \; \ | xargs -i mv \{} /path/to/store/files/ xargs takes a list on STDIN and performs the command on each (if you use -i one at a time). 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: > ...one other twist... > > How can I move the found files to another location? > find . \ -mtime -7 \ -exec fgrep -l "address@domain.tld" \{} \; \ | xargs -i mv \{} /path/to/store/files/ xargs takes a list on STDIN and performs the command on each (if you use -i one at a time). 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:

[WebDNA] Where's that developer list? (2012) calculating tax rates, mail order solutions and version 2 (1997) [WebDNA] MD5 Hash issue (2009) Formulas.db + Users.db (1997) Emailer... DOA but still twitching (2007) Sorting by date (1997) form image (2000) WebCatalog2 for NT Beta Request (1997) Shopping carts and reloading pages (1997) Here's how to kill a Butler Database. (1997) forming a SKU (1999) Replace Missing Images (2003) generator prob (2001) Looping control (1997) Emailer port change (1997) [include file=filename.inc&strip=t] (2002) Preferred Web Design Tool? (1999) Frames and WebCat (1997) typhoon... (1997) [WebDNA] "Safe Write for Database" setting.... (2016)