lilypond-user-fr
[Top][All Lists]
Advanced

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

Re: Lilypond-book table des insertions lily


From: Frédéric Bron
Subject: Re: Lilypond-book table des insertions lily
Date: Tue, 16 Jun 2009 20:39:10 +0200

> Voilà un petit script qui peut t'aider peut-être à faire ce que tu
> souhaites. Tu peux bien sûr ajouter ce que tu veux entre les deux DELIMITER.
> Attention, le deuxième DELIMITER doit être au tout début de la ligne.
>
> Frédéric
>
> #!/bin/bash
> for f in `find ../ -type f -name "*.ly"` ; do
>       title=`grep "title *=" $f | sed 's;.*= *"\([^"]*\).*;\1;'`
>       cat - << DELIMITER
> \lilypondfile[noindent,line-width=18\cm]{${f}}\addcontentsline{toc}{subsection}{${title}}
> DELIMITER
> done


Bien sûr tu peux ajouter la commande sort :

#!/bin/bash
for f in `find ../ -type f -name "*.ly"|sort` ; do
        title=`grep "title *=" $f | sed 's;.*= *"\([^"]*\).*;\1;'`
        cat - << DELIMITER
\lilypondfile[noindent,line-width=18\cm]{${f}}\addcontentsline{toc}{subsection}{${title}}
DELIMITER
done




reply via email to

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