Moving all mp3s to a single directory
Hi, I got a simple question this time: I want to move all my mp3s to a single directory. I now that to find them a can use find like this
<code> fina / -name "*mp3" </code> I think I need to use a pipe to connnect the find with the mv command but I don't really know how. Thanks in advance, Wilmer |
Almost there :)
find / -iname "*.mp3" -exec mv "{}" /path/to/target/. \; |
You might want to check if there are no sounds from programs being moved ;) I don't know which extension they have but you never know.
|
You may want to add a grep /home to that somewhere, so that it restricts moving, to files only found in /home. /home can be substituted for other places as well.
|
Quote:
find /home instead of a find / Cheers, Tink |
All times are GMT -5. The time now is 04:59 AM. |