[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Thu May 6 17:08:01 2004 -->
- <!--x-from-r13: nyr1 ng ploregrpupnsr.arg (@nguna X. Gaqrejbbq) -->
- <!--x-message-id: [email protected] -->
- <!--x-subject: [ale] Shell Scripting -> find files *.<ext> and move them to /backup -->
- <li><em>date</em>: Thu May 6 17:08:01 2004</li>
- <li><em>from</em>: ale1 at cybertechcafe.net (Nathan J. Underwood)</li>
- <li><em>subject</em>: [ale] Shell Scripting -> find files *.<ext> and move them to /backup</li>
find all of the .jpg files, and move them to /mnt/mymachine (samba mount)
find all of the .gif files, and move them to /mnt/mymachine (samba mount)
etc.
The box is currently booted with knoppix, and I've mounted a directory
on my box to copy the files to. Now, I've just gotta find a relatively
painless way to move 9,000+ files.
As a testament to how bad I am at shell scripting, I'm going to put what
I have so far (tab #2 in my browser is at linuxdoc.org trying to get all
the parameters right for find, exec, and copy). As always, any help
would be greatly appreciated.
find *.jpg -exec copy $1 /backup
-------------- 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>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<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="00241" href="msg00241.html">[ale] Shell Scripting -> find files *.<ext> and move them to /backup</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00228.html">[ale] Quiet</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00230.html">[ale] VI question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00226.html">[ale] ftp problem</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00234.html">[ale] Shell Scripting -> find files *.<ext> and move them to /backup</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00229"><strong>Date</strong></a></li>
<li><a href="threads.html#00229"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>