Add utility script/stop duping tiny bash funcs.

Well, add the utility script anyway. Removing duped stuff comes
in subsequent commits.

Change-Id: Icf16a0e61402d660a72136c3777bf9047a39a97b
1 file changed