#!/bin/bash IFS=: read -r name prefix DISPLAY <<<"$1" export DISPLAY id=$1 name=${id#[0-9][0-9]_} exec "$0"_"$name" "${id}"