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:

Problems with [Search] param - Mac Plugin b15 (1997) BadSuffix with 2.1b3 cgi (1997) Problems with Frames (1998) [OT] Search Engine Tips (2003) ODBC-Interface (2000) Updating Prices in Online Database (1999) ListWords passing multi values in one form field (2000) [OT] DOD again (2003) shipcost (1997) WebTen and WebCat (1997) WebCat2: Formulas.db question (1997) Setting up WebCatalog with Retail Pro data (1996) Detecting SSL or port (2005) Electronic Delivery (1997) [delete] problem (1997) Trouble with formula.db + more explanation (1997) RequiredFields template (1997) Setting a text Var inside an orderfile (2002) Running _every_ page through WebCat ? (1997) Nesting format tags (1997)