#!/bin/sh head -n 5 gnxfuncs > $1 tail -n 14 gnxfuncs >> $1 name=${1%-*} sed -i "s/simple/$name/g" $1