Unix news is nothing but opensourse - this site features general information about Linux/Unix/Perl programming language.
Wednesday, June 13, 2007
Linux tip: Bash parameters and parameter expansions.
Do you sometimes wonder how to use parameters with your scripts, and how to pass them to internal functions or other scripts? Do you need to do simple validity tests on parameters or options, or perform simple extraction and replacement operations on the parameter strings? This tip helps you with parameter use and the various parameter expansions available in the bash shell.