I have a big bash script
(version 3.2.51(1)-release) and I need to store command line arguments for use in the script.
I checked many threads here and people suggested to use "[email protected]" to access all arguments.
If I run this script (test.sh) -
#!/bin/bash echo "[email protected]"; $> ./test.sh 1 2 3 1 2 3
But if i run this
#!/bin/bash set args1 = "[email protected]"; ... do some work here ... echo $args1;
I get no output when run. What am I missing here? I want to store the arguments without modifying them and then use them sometime later in the script.