Re: How do I do a selective, recursive copy ? Bash script ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 27 Oct 2008 15:26:22 -0400, Linuxguy123 wrote:

> I have a huge multi level directory of legally ripped music.   I ripped
> my CDs as flac and mp3.
> 
> How do I easily copy just the mp3 files onto another drive ?  Ie, ignore
> the flac files and copy only the mp3 files ?  I want to keep the
> directory structure intact.
> 
> The main directory is Music.  In Music is BandA, BandB, BandC, etc.
> Inside BandA is Record1, Record2, Record3, etc.
> Inside Record 1 is song1.flac, song1.mp3, song2.flac, song2.mp3, etc.
> 
> I want to preserve the directory structure. I feel a script coming on.
> Am I right ?

Since you mention Bash in the subject line, yes, it would be possible
with Bash (some hints: Parameter Expansion, man basename, mkdir -p).

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux