Re: OT: Unix Find Question

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57431
interpreted = N
texte = Clint Davis wrote: > I tried the mv command with relative and absolute paths, but the error came > up both times. Am I missing something? >> find . \ >> -mtime -7 \ >> -exec fgrep -l "address@domain.tld" \{} \; \ >> | xargs -i mv \{} /path/to/store/files/ ^^^ You are missing the option to xargs to have it process the files 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: > I tried the mv command with relative and absolute paths, but the error came > up both times. Am I missing something? >> find . \ >> -mtime -7 \ >> -exec fgrep -l "address@domain.tld" \{} \; \ >> | xargs -i mv \{} /path/to/store/files/ ^^^ You are missing the option to xargs to have it process the files 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:

search for non-unique question (2001) Running _every_ page through WebCat ? (1997) Exists? (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Prepaid monthly subscription order fulfillment question (2004) Looking up two prices in database? (1997) Building Calendars (1997) latest version? (1998) [cart]'s ever get recycled? (2000) SetHeader (1999) UNC path support in WebDNA 5.0 (2003) Round to the nearest half! (2008) Webcat/Webmerchant (1998) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Question (1997) [ShowNext] feature in 2.0 (1997) newbie question about zip code search (2003) I give up!! (1997) A little syntax help (1997) Secure Server basic question... (1997)