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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents