hello,
i have generated a lilypond file and would like to be able to manipulate
the file with bash scripts.
first thing i would like to do is insert some additional stuff one line
under the 'version "2.10" line.
the script i have is below - the problem is the echo "$line" bit drops
all the \ from the score.
anyone know a way to fix this script so all the \ remain intact?
thanks
rob
# usage: ./insert.sh mainfile insertedfile >outputfile
cat "$1" |
while read line
do
echo "$line"
if [[ "$line" == 'version "2.10"' ]]
then
cat "$2"
fi
done
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user