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