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:

Email encryption (1998) Hosts who have upgraded to v5.0? (2003) Sorting problem (2002) Getting Total Quantity (1997) Problem with updating to 2.1.1 (1998) searchable list archive (1997) RE: Include (1998) WCS Newbie question (1997) Upgrading old WebCat Database Files (1997) How did *you* learn Web Catalog? (2000) Mail Server Needed. (1998) passing search criteria (1997) [defined]ish (1997) Shopping Cart variation... (1997) no global [username] or [password] displayed ... (1997) [Announce]: Web server security and password protection (1997) Nested tags count question (1997) WebCatalog [FoundItems] Problem - LONG - (1997) limitation found on group searching (1997) Where is f2? (1997)