Passing string argument to script
Hello, I've been trying to make a script called bandit20-do to run.
First I ran it without arguments(./bandit20-do) and the script returned:
Run a command as another user.
Example: ./bandit20-do id
Afterwards I understood that I need to pass an argument into the script, but I don't understand how.
So far I've tried various ways (and I entered id 11020):
./bandit20-do 11020
./bandit20-do "11020"
./bandit20-do '11020'
None of these worked so far, can anyone please help me?
|