1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh if [ pts`which konqueror` != pts ] then konqueror "$1" elif [ pts`which epiphany` != pts ] then epiphany "$1" elif [ pts`which firefox` != pts ] then firefox "$1" elif [ pts`which mozilla` != pts ] then mozilla "$1" else "URL: $1" fi