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