I\'m attempting to write a function in bash that will access the scripts command line arguments, but they are replaced with the positional arguments to the function. Is ther
One can do it like this as well
#!/bin/bash # script_name function_test.sh function argument(){ for i in $@;do echo $i done; } argument $@
Now call your script like
./function_test.sh argument1 argument2