Sheesh!  Seconds after posting, I spot my deliberate mistakes...


On 22/11/10 19:30, John Carlyle-Clarke wrote:
That's a bit odd looking, but <command> gets executed for each file
found, replacing '{}' with the name.  For example:-

find -mtime -2 -iname 'foo*' -exec mv '{}' /folder1/folder2

(The first time, you may want to do..

find -mtime -2 -iname 'foo*' -exec echo mv '{}' /folder1/folder2

)


That should be:-

find -mtime -2 -iname 'foo*' -exec mv '{}' /folder1/folder2 \;

find -mtime -2 -iname 'foo*' -exec echo mv '{}' /folder1/folder2 \;

(In other words, \; was missing off the end)


--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to