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:
[Shownext] (1997)
Can webcat 3.0/4.0 handle 1,000,000 hits a day? (2000)
How to include weather (2000)
carriage returns in data (1997)
Emailer (1997)
No Wanna Duppys (1998)
Shell script within a sandbox (2005)
Help formatting search results w/ table (1997)
WebCat2b12plugin - [search] is broken ... not! (1997)
[WebDNA] COPYFILE & permissions (2013)
[ShowNext] feature in 2.0 (1997)
WYSIWYG Editor? (2006)
Formatting of email on NT (1998)
Interesting speed comparison .. (2003)
WebCat2b15MacPlugin - showing [math] (1997)
WebCatalog NT beta 18 now available (1997)
Using Plug-In while running 1.6.1 (1997)
Obtaining a dice result (2007)
(no subject) (1997)
ftp ng (1999)