greycat 1237998988 learn Handling command-line arguments: http://mywiki.wooledge.org/BashFAQ/035 or http://bash-hackers.org/wiki/doku.php/howto/getopts_tutorial lhunath 1280443462 forget lhunath 1280443518 learn #redirect arguments greycat 1533316429 forget greycat 1533316437 learn args() { printf "%d args:" "$#"; printf " <%s>" "$@"; echo; } # Or you can make it a /bin/sh script. See also !arguments