It would be useful to have a utility that can perform the `substvars' expansions on any arbitrary file, including STDIN. It should be almost trivial to write... Perhaps I'll try and do this soonish, unless someone beats me to it.