#!/bin/bash cmd=$(echo $0 | sed -e 's/\-list$//g') pl=$0.pl bash -c "$($pl $($cmd --list))"