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
-
*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
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
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
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
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
>
* 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 {
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
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
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
>
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
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
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
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
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
15 matches
Mail list logo