lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: manipulating .ly with bash - echo drops \


From: Jonathan Kulp
Subject: Re: manipulating .ly with bash - echo drops \
Date: Wed, 26 Nov 2008 13:04:34 -0600
User-agent: Thunderbird 2.0.0.18 (X11/20081125)

Rob Canning wrote:
Jonathan Kulp wrote:
Rob Canning wrote:

first thing i would like to do is insert some additional stuff one line under the 'version "2.10" line.

Ah. I overlooked this part. The script I put in the other email won't put the text in the right place like you want. I guess your "dirty" solution is better :)

Jon
hi jon,

this is the clean way... a friend on irc just helped me clean up my life :)

sed -e"/version/r $2" $1

Awesome!  That works perfectly!  It's certainly easier on the eyes... ;-)

i really need to learn sed properly
its a really powerfull way of editing lilypond scores

Me too. Right now I'm working on big projects that use LaTeX and BibTex and only do scripting if there's a particular task I'm trying to solve. I could definitely use some sed skills now and then...

I'm saving this script for use in other contexts later. Thanks for sharing :)

Jon
--
Jonathan Kulp
http://www.jonathankulp.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]