%-----------------------------------------------------------------------------% % vim: ft=mercury ts=4 sw=4 et %-----------------------------------------------------------------------------% % % file: ultra_sub.m % author: conway. % % This source file is hereby placed in the public domain. -conway (the author). % % 'ultra_sub' is an extended version of zs' 'sub' command. The idea is that % it takes a pattern, a template and some strings, and matches the strings % against the pattern, binding some variables in the process. Then it % substitutes the variables in the template for the bindings from the pattern. % % usage: ultra_sub