[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



find /path/to/c -iname "*.gif" -exec cp {} /mnt/mymachine -exec rm ()\;

Jason Etheridge wrote:

> Robert Heaven wrote:
> 
>> I think might work:
>>
>> find / -name "*.jpg" -exec mv /mnt/mymachine/ {} \;
> 
> 
> mv might have trouble across filesystems.  Could do a cp and then a rm.
> 
> -- Jason
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00229" href="msg00229.html">[ale] Shell Scripting -&gt; find files *.&lt;ext&gt; and move them to /backup</a></strong>
<ul><li><em>From:</em> ale1 at cybertechcafe.net (Nathan J. Underwood)</li></ul></li>
<li><strong><a name="00234" href="msg00234.html">[ale] Shell Scripting -&gt; find files *.&lt;ext&gt; and move them to	/backup</a></strong>
<ul><li><em>From:</em> robertheaven at earthlink.net (Robert Heaven)</li></ul></li>
<li><strong><a name="00237" href="msg00237.html">[ale] Shell Scripting -&gt; find files *.&lt;ext&gt; and move them to	/backup</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00237.html">[ale] Shell Scripting -&gt; find files *.&lt;ext&gt; and move them to	/backup</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00239.html">[ale] Shell Scripting -&gt; find files *.&lt;ext&gt; and move them to	/backup</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00237.html">[ale] Shell Scripting -&gt; find files *.&lt;ext&gt; and move them to	/backup</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00286.html">[ale] Shell Scripting -&gt; find files *.&lt;ext&gt; and move them to	/backup</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00238"><strong>Date</strong></a></li>
<li><a href="threads.html#00238"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>