-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Samstag, 5. April 2008 schrieb John Mandereau: > Gee, either sed is broken, or the manual doesn't match sed features, or > I'm stupid: 's/@end ignore/&[EMAIL PROTECTED] \\version "2.11.38"/1' inserts > the > \version line after all occurences of '@end ignore', despite of the '1' > flag telling sed to replace only first match.
The think what you are missing is that sed is line based. What your regexp is doing is to replace only the first "@end ignore" in each line... Cheers, Reinhold - -- - ------------------------------------------------------------------ Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFH94PbTqjEwhXvPN0RAimUAJ9fPEdgyXDmFoxg54OmhA81pcsETACgvFCM tY9aOxy46ldlCSaNqZaFnBw= =D36y -----END PGP SIGNATURE----- _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user