I'm trying to write a shell script which basically goes into a particular folder and performs some actions. The catch here is that the folder name is variable i.e. /path/to/variable
I was thinking, is it possible to run a shell script from command line and also define a variable in the same line? Something like:
./run.sh $id=456
When it runs, it takes the path as
/path/to/$id and hence /path/to/456.