|
From: | Jonathan Kulp |
Subject: | Re: Lilypond & Ubuntu Help |
Date: | Mon, 18 Aug 2008 12:37:30 -0500 |
User-agent: | Thunderbird 2.0.0.16 (X11/20080724) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |