move some code in a shared awk script, add fast replacement functions for [ -z ]...
drwxr-xr-x - openwrt