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
:;
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
} :;
$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
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