* and @ in substring extraction in bash
I understand how a substring extraction is done,
Code:
${string:position:length} If the $string parameter is "*" or "@", then this extracts a maximum of $length positional parameters, starting at $position. Code:
echo ${*:2} # Echoes second and following positional parameters. Can you offer any concrete examples? |
from the command-line arguments when it was invoked
Code:
test@ws1:~$ cat /tmp/example.sh |
Right, I simply ignored the word group "positional parameter". That was clearly unambiguous. Thanks!
|
Not sure I understand the question. By positional parameters the tldp is referencing command line arguments.
Code:
#!/bin/bash |
All times are GMT -5. The time now is 12:02 PM. |