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:

Mass Mail (2000) SandBox and ImageMagick (2003) PERL to Web DNA (2000) HTML Mail & Line breaks... (2004) [WebDNA] Update on WebDNA? (2011) [DELETEFILE] via http (2003) Stripping attachments in shared pop (2005) Multiple prices (1997) [browsername] not working? (1997) Firesite and [referrer] atg broke (1997) Re:Emailer Set Up (1997) WebObjects (2000) Help! WebCat2 bug (1997) [sendmail] and [formvariables] (1997) Exclude by date - multiple (1997) OT: Variables in printed URL (2007) emailer w/F2 (1997) WebCat editing, SiteGuard & SiteEdit (1997) Multiple serial numbers (1997) [TaxableTotal] - not working with AOL and IE (1997)