lilypond-user
[Top][All Lists]
Advanced

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

Re: Help using convert-ly recursively on Linux


From: Federico Bruni
Subject: Re: Help using convert-ly recursively on Linux
Date: Fri, 3 Sep 2010 14:01:28 +0200

I'm not sure at all... maybe you can use find?
Something like that:

cd path/to/dir
find -name '*.ly' -exec convert-ly {} \;

Cheers,
Federico

2010/9/3 Ralph Palmer <address@hidden>
Greetings -

I'm running LilyPond on Ubuntu 9.10 (Karmic Koala).

I'd like to run convert-ly against all of my .ly files that I have created, without having to manually change directories to each directory that contains a file I want to convert, and then run convert-ly against the files in that directory. "convert-ly -e *.ly" works in a single directory, but I can't figure out how to get it to work recursively through multiple directories. Assuming all the .ly files I have created are in a single directory hierarchy, like:
/SheetMusic
    /Classical
        /Bach
            /ArtOfTheFugue
            /SoloCelloSuites
        /Beethoven
            /Sonatas
            /StringQuartets
        /Mozart
    /FolkMusic
        /NorthAmerican
        /EasternEuropean
and that the directory structure might change (while always beginning from a single parent directory), can anyone either point me in the right direction or share a script file (preferably python or bash, since I'm more likely to understand what's going on with those) to run convert-ly recursively on the files each and all of the directories under /SheetMusic?

I appreciate your time and attention,

Ralph

--
Ralph Palmer
Montague City, MA
USA
address@hidden

_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

[Prev in Thread] Current Thread [Next in Thread]