1 2 3 4 5 6 7 8 9
#!/bin/dash # vim:ft=sh if [ -n "$1" ] && [ -x "$1" ]; then matlab -batch "$1" else echo 'Need executable file as an argument' exit 1 fi