#! /bin/csh
# change the default node-function in all the scenarios 
# (instead, could change the value at the end of default2 and "asmall")

foreach i (*.l)
sed -e "s/nodes{ default{ function = $1/nodes{ default{ function = $2/" < $i  >! tmp
/bin/mv tmp $i
end
