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:

Encrypt/Decrypt (2008) my price won't move (1997) Uh...can someone help me out with the b10? (1997) Beta version-Mac? (was Emailer update for Mac?) (1998) Problems passing [SKU] with $Replace in 2.0 (1997) can webcat create directories on NT? (1997) b12 cannot limit records returned and more. (1997) Webstar 1.3.1 PPC (1997) Setting the Date (2000) WCS Newbie question (1997) [WebDNA] eCommerce in 7.0 but not in 7.1? (2012) How To question on setting up downloads (1997) WebCat chatroom (1997) [price] maddness (2002) Follow-Up to: Removing [showif] makes a big difference in speed (1997) (More) Question about searching combination of fields (2003) PCS Emailer's role ? (1997) syntax question, not in online refernce (1997) Coding Standards - are there any ? (2003) cart (1997)