Nice! Thanks for this, Patrick! It works just right. Now I have to
look at it to figure out *why* it works the way it does ;-) I haven't
used that sort of construct before...
Jonathan
Patrick Horgan wrote:
Instead of basename you could use the built in string manipulation stuff
this:
# determines the source filename
srcfile=`basename $1`
# removes the extension from source filename
FILENOEXTENSION=${srcfile%.*}
# determines directory
OUTDIR="`dirname $1`"
It does the same thing as basename, but more generally. In particular
is says to strip off of the end of a string a pattern. In this case our
pattern is simple, just a period followed by anything.
Patrick
--
Jonathan Kulp
http://www.jonathankulp.com
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user