suggest change

Will return all of the positional parameters in a single string.

testscript.sh:

#!/bin/bash
echo "$*"

Run the script with several arguments:

./testscript.sh firstarg secondarg thirdarg

Output:

firstarg secondarg thirdarg

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Internal variables:
*
*
* HOME
* etc...
*
*
*
* PWD
* IFS
*
* OLDPWD
* PATH
* OSTYPE
* PPID
* EDITOR
*
* RANDOM
* SHLVL
* LINENO
* GROUPS
* UID

Table Of Contents