suggests that it can be scripted in portable shell ( So it seems, although:
current="${2:+"$1"}"
target="${2:-"$1"}"
... etc...
all these myriad fancy variable substitutions would have to be replaced
with sed, or something ... --thanks, karl.
