<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. Try this:<br><br>find /mnt/windowspart -iname "*.mp3" -exec /bin/mv -v {} <destination directory> \;<br><br>That moves (not sure if you can a move or a copy. 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. Note: those are<br>the opened and closed curely brackets and a space before and after the <destination directory>. <br><br>Hope this helps.<br><br>Regards,<br>Lou<br><br><br><br><hr id="stopSpelling">> Date: Tue, 23 Jan 2007 08:54:29 -0500<br>> From: peter@thecybersource.com<br>> To: nflug@nflug.org<br>> Subject: [nflug] for the command line gurus<br>> <br>> I probably asked this before but I can't recall the answer. We're<br>> probably gonna need some dollar signs and maybe some back ticks...<br>> I'm looking for a (simple) way to find files of a certain type and<br>> eventually put them all somewhere WITHOUT the existing paths they<br>> currently have.<br>> Case in point, I always get someones completely bugged up windows box in<br>> here and they have tons of mp3's they now want on their Linux side.<br>> Mounting with ntfs-3g makes this easy.<br>> So I currently do this on their windows partition...<br>> 1. find /mnt/windowspart -iname "*.mp3" > foundmp3s<br>> 2. I then tar them up with tar czf foundmp3s.tar.gz -T foundmp3s<br>> 3. Then I extract them where I want on the Linux side but all the songs<br>> are scattered all over with the paths they had before. I would like to<br>> remove all the paths and just get the mp3s out.<br>> I know that it probably could all be done in one shot but the thing I<br>> want to focus on is removing the existing paths or just getting the<br>> files themselves. Any ideas? TIA<br>> _______________________________________________<br>> nflug mailing list<br>> nflug@nflug.org<br>> 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>