Re: (somewhat OT:) lilypond calling bash script questions

2012-05-09 Thread Urs Liska
er Webster: *From*: David Kastrup *Subject*: Re: (somewhat OT:) lilypond calling bash script questions *Date*: Wed, 09 May 2012 16:01:54 +0200 *User-agent*: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-09 Thread Christopher Webster
- *From*: David Kastrup *Subject*: Re: (somewhat OT:) lilypond calling bash script questions *Date*: Wed, 09 May 2012 16:01:54 +0200 *User-agent*: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-09 Thread Dossy Shiobara
This may or may not do exactly what you want: find [0-9]* -name '*.ly' -print | while read f; do cd `dirname $f` lilypond `basename $f` done On 5/9/12 9:39 AM, Christopher Webster wrote: > /How can I sequentially cd to all subdirectories that start with a number?/ -- Dossy Shiobara

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-09 Thread David Kastrup
Christopher Webster writes: > A variant of Alex's suggestion (below): > > find . -type d -name "[0-9]*" -print | while read dir > do >     ( >         cd $dir; >         for f in *.ly >         do >             lilypond $f >         done >     ) > done find is looking _recursively_, arbitrarily

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-09 Thread Christopher Webster
x27;s to be expected that some details will need correction. Sorry about that. Christopher W. *From*: Álex R . Mosteo *Subject*: Re: (somewhat OT:) lilypond calling bash script questions *Date*: Wed, 09 May 2012 11:37:47 +0200 *U

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-09 Thread Álex R . Mosteo
Urs Liska wrote: > Please excuse if I post a linux question here, but I'd prefer not to > have to find a dedicated forum and subscribe there first ... > > I have a project with more than two dozens of lilypond scores. For > several reasons I have them in individual files which I can't \include >

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Reedmace Star
* 2012-05-08 11:46 +0200 Jan Kohnert: > Am 2012-05-08 11:31, schrieb Urs Liska: > > I would like to write a script that allows me to compile all .ly > > files in one run. > > [...] > > This would be a bash solution: > > for dir in $(find . -maxdepth 1 -type d -regex "^\.\/[0-9].*$"); do > cd {

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Urs Liska
Am 08.05.2012 11:46, schrieb Jan Kohnert: Hi, Am 2012-05-08 11:31, schrieb Urs Liska: I would like to write a script that allows me to compile all .ly files in one run. [...] in a form like for dir in [get me all directories starting with a number] do cd $dir lilypond *.ly cd .. done Thi

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Jan Kohnert
Hi, Am 2012-05-08 11:31, schrieb Urs Liska: I would like to write a script that allows me to compile all .ly files in one run. [...] in a form like for dir in [get me all directories starting with a number] do cd $dir lilypond *.ly cd .. done This would be a bash solution: for dir in $(f

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread David Kastrup
Urs Liska writes: > Please excuse if I post a linux question here, but I'd prefer not to > have to find a dedicated forum and subscribe there first ... > > I have a project with more than two dozens of lilypond scores. For > several reasons I have them in individual files which I can't \include >

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Urs Liska
Am 08.05.2012 11:46, schrieb Jonas Olson: On 2012-05-08 11:31, Urs Liska wrote: cd 01_01_... lilypond *.ly cd .. cd 01_02_... .. in a form like for dir in [get me all directories starting with a number] do cd $dir lilypond *.ly cd .. done Perhaps like so: for dir in [0-9]*/; do cd $dir

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Urs Liska
Am 08.05.2012 11:36, schrieb m...@apollinemike.com: On 8 mai 2012, at 11:31, Urs Liska wrote: Please excuse if I post a linux question here, but I'd prefer not to have to find a dedicated forum and subscribe there first ... I have a project with more than two dozens of lilypond scores. For se

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Jonas Olson
On 2012-05-08 11:31, Urs Liska wrote: cd 01_01_... lilypond *.ly cd .. cd 01_02_... .. in a form like for dir in [get me all directories starting with a number] do cd $dir lilypond *.ly cd .. done Perhaps like so: for dir in [0-9]*/; do cd $dir lilypond *.ly cd - done Jonas O

Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread m...@apollinemike.com
On 8 mai 2012, at 11:31, Urs Liska wrote: > Please excuse if I post a linux question here, but I'd prefer not to have to > find a dedicated forum and subscribe there first ... > > I have a project with more than two dozens of lilypond scores. For several > reasons I have them in individual file

(somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Urs Liska
Please excuse if I post a linux question here, but I'd prefer not to have to find a dedicated forum and subscribe there first ... I have a project with more than two dozens of lilypond scores. For several reasons I have them in individual files which I can't \include in a master file. I would