Re: OT: Unix Find Question
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57430
interpreted = N
texte = On 4/20/04 3:18 PM, "John Peacock"
wrote:> 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).The following command is producing an error:find . \ -mtime -7 \ -exec fgrep -l "webmaster@realtreeoutdoors.com" \{} \; \ | xargs mv \{} ../EMailFolder/ERROR PRODUCED:usage: mv [-fi] source target mv [-fi] source ... directoryI tried the mv command with relative and absolute paths, but the error cameup both times. Am I missing something?-------------------------------------------------------------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:
On 4/20/04 3:18 PM, "John Peacock" wrote:> 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).The following command is producing an error:find . \ -mtime -7 \ -exec fgrep -l "webmaster@realtreeoutdoors.com" \{} \; \ | xargs mv \{} ../EMailFolder/ERROR PRODUCED:usage: mv [-fi] source target mv [-fi] source ... directoryI tried the mv command with relative and absolute paths, but the error cameup both times. Am I missing something?-------------------------------------------------------------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/
Clint Davis
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:
[include] affect on filepaths for links? (1997)
Location of Webcat site in folder hierarchy (1997)
WebCat 3.04-3.07 plug-in dying on server.... (2000)
Size limit for tmpl editor ? (1997)
Bug Report, maybe (1997)
OT: Let's see your workspace... (2005)
Nested [tags] (2001)
SSL and reg web* (1997)
nesting limits? (1998)
append=T problem (1998)
Great product and great job ! (1997)
Now when I send TeaRoom Order fields it does not post in Invoice. (1997)
WebCat2b12--[searchstring] bug (1997)
This list needs a digest: rant, rave... (1997)
WC2/Mac -- Forms not submitting correctly with Mac browsers (1997)
Re(4): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998)
[applescript] (1999)
Problem getting shipping to calculate (2003)
help testing quicktime delivery (1997)
Email...Thanks (1997)