Discussion:
copy all directories that contain flac to new location? Or remove all directories that contain mp3
(too old to reply)
neubienaut
2013-04-10 00:46:39 UTC
Permalink
Hey all,

I have a HD with music that I want to copy to a new HD.
However, I only want to copy folders that contain FLAC's.

I do not want to copy folders with mp3's or ogg's.


Anyone have any ideas?


TIA,

Lance
neubienaut
2013-04-10 00:48:03 UTC
Permalink
I should also add that the folder and file names contain spaces



Lance
Post by neubienaut
Hey all,
I have a HD with music that I want to copy to a new HD. However, I only
want to copy folders that contain FLAC's.
I do not want to copy folders with mp3's or ogg's.
Anyone have any ideas?
TIA,
Lance
Rikishi42
2013-04-10 18:58:51 UTC
Permalink
Post by neubienaut
Hey all,
I have a HD with music that I want to copy to a new HD.
However, I only want to copy folders that contain FLAC's.
I do not want to copy folders with mp3's or ogg's.
Anyone have any ideas?
Look into rsync.
Seems the obvious choice.

PS: you should make up your mind on one thing: do you only want to copy dirs
that contain FLAC's, or do you just want to copy all FLAC's ? In other
words: what do you do with dirs that contain both mp3/ogg and FLAC's?

PPS: What's a FLAC?
--
When in doubt, use brute force.
-- Ken Thompson
Chris F.A. Johnson
2013-04-11 00:41:21 UTC
Permalink
Post by Rikishi42
Post by neubienaut
Hey all,
I have a HD with music that I want to copy to a new HD.
However, I only want to copy folders that contain FLAC's.
I do not want to copy folders with mp3's or ogg's.
Anyone have any ideas?
Look into rsync.
Seems the obvious choice.
PS: you should make up your mind on one thing: do you only want to copy dirs
that contain FLAC's, or do you just want to copy all FLAC's ? In other
words: what do you do with dirs that contain both mp3/ogg and FLAC's?
PPS: What's a FLAC?
Free Lossless Audio Codec

FLAC files can be converted back to the original WAV files.
--
Chris F.A. Johnson <http://cfajohnson.com>
Author: =======================
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Loading...