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
4 Aliasing
9 Arrays
10 Functions
12 Sourcing
13 Find
15 Quoting
19 Math
20 Scoping
27 Debugging
28 Pitfalls
32 Change shell
35 Job control
38 Read a file
40 Pipelines
48 Using sort
49 Namespace
50 co-processes
59 Cut command
63 CGI Scripts
67 Parallel
68 Grep
69 Strace
70 Sleep
71 Decodi
72 Contributors