This is little script shows the usage of $#, $* and $@ in bash.
#!/bin/bash function countargs { echo "$# args." } echo "$*" countargs "$*" countargs "$@"
This is little script shows the usage of $#, $* and $@ in bash.
#!/bin/bash function countargs { echo "$# args." } echo "$*" countargs "$*" countargs "$@"