[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Thu May 6 18:41:37 2004 -->
- <!--x-from-r13: nyr1 ng ploregrpupnsr.arg (@nguna X. Gaqrejbbq) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: 1083880036.588.1.camel@bsd -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Shell Scripting -> find files *.<ext> and move them to /backup -->
- <li><em>date</em>: Thu May 6 18:41:37 2004</li>
- <li><em>from</em>: ale1 at cybertechcafe.net (Nathan J. Underwood)</li>
- <li><em>in-reply-to</em>: <<a href="msg00237.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00229.html">[email protected]</a>> <1083880036.588.1.camel@bsd> <<a href="msg00237.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Shell Scripting -> find files *.<ext> and move them to /backup</li>
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
> <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 -> find files *.<ext> 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 -> find files *.<ext> 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 -> find files *.<ext> 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 -> find files *.<ext> and move them to /backup</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00239.html">[ale] Shell Scripting -> find files *.<ext> and move them to /backup</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00237.html">[ale] Shell Scripting -> find files *.<ext> and move them to /backup</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00286.html">[ale] Shell Scripting -> find files *.<ext> 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>