Some generic portable shell commands based on ucommon