Re: A quick way to change 50 lilypond files

2010-12-21 Thread rob canning
hsweet wrote: Search/Replace in an editor is fine for one or 2 files. + I never remember regex syntax so this way it's written down : ) +I just wanted to avoid having to do this manually for 50 files. This does them all at once. 50 or 500. i find sed handy for this kind of batch text

Re: A quick way to change 50 lilypond files

2010-12-20 Thread hsweet
:; print OUT $line; } This is the whole program. http://old.nabble.com/file/p30495491/lymod.pl lymod.pl -- View this message in context: http://old.nabble.com/A-quick-way-to-change-50-lilypond-files-tp30495491p30498043.html Sent from the Gnu - Lilypond - User mailing list

A quick way to change 50 lilypond files

2010-12-19 Thread hsweet
} :; $line=~s:\\midi { }:$midistring:; print OUT $line; } This is the whole program. http://old.nabble.com/file/p30495491/lymod.pl lymod.pl -- View this message in context: http://old.nabble.com/A-quick-way-to-change

Re: A quick way to change 50 lilypond files

2010-12-19 Thread Marc Weber
Excerpts from hsweet's message of Mon Dec 20 02:05:06 +0100 2010: I had a bunch of band charts I needed to update. Let me remind you that editors such as Vim or jedit have macro recording. Depending on the task this can be even faster if you use the editors search/ grep features and then the