Bash version of mvid