#!/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