> Had you considered avoiding the intermediate file altogether and going: > > sed ... | other changes ... | sh eval "$(sed ... | whatever)"