<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hello Peter:<br><br>You were almost there.&nbsp; Try this:<br><br>find /mnt/windowspart -iname "*.mp3" -exec /bin/mv -v {} &lt;destination directory&gt; \;<br><br>That moves (not sure if you can a move or a copy.&nbsp; If you wish to copy replace the /bin/mv with /bin/cp) and displays all files processed.<br>You could of course leave off the "-v" to the move command.&nbsp; Note: those are<br>the opened and closed curely brackets and a space before and after the &lt;destination directory&gt;.&nbsp; <br><br>Hope this helps.<br><br>Regards,<br>Lou<br><br><br><br><hr id="stopSpelling">&gt; Date: Tue, 23 Jan 2007 08:54:29 -0500<br>&gt; From: peter@thecybersource.com<br>&gt; To: nflug@nflug.org<br>&gt; Subject: [nflug] for the command line gurus<br>&gt; <br>&gt; I probably asked this before but I can't recall the answer. We're<br>&gt; probably gonna need some dollar signs and maybe some back ticks...<br>&gt; I'm looking for a (simple) way to find files of a certain type and<br>&gt; eventually put them all somewhere WITHOUT the existing paths they<br>&gt; currently have.<br>&gt; Case in point, I always get someones completely bugged up windows box in<br>&gt; here and they have tons of mp3's they now want on their Linux side.<br>&gt; Mounting with ntfs-3g makes this easy.<br>&gt; So I currently do this on their windows partition...<br>&gt; 1. find /mnt/windowspart -iname "*.mp3" &gt; foundmp3s<br>&gt; 2. I then tar them up with tar czf foundmp3s.tar.gz -T foundmp3s<br>&gt; 3. Then I extract them where I want on the Linux side but all the songs<br>&gt; are scattered all over with the paths they had before. I would like to<br>&gt; remove all the paths and just get the mp3s out.<br>&gt; I know that it probably could all be done in one shot but the thing I<br>&gt; want to focus on is removing the existing paths or just getting the<br>&gt; files themselves. Any ideas? TIA<br>&gt; _______________________________________________<br>&gt; nflug mailing list<br>&gt; nflug@nflug.org<br>&gt; http://www.nflug.org/mailman/listinfo/nflug<br><br /><hr />Be one of the first to try  <a href='http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d' target='_new'>Windows Live Mail.</a></body>
</html>