Find the answer to your Linux question:
Results 1 to 2 of 2
I have a bash script and I want to get the tenth argument I pass in as MYVAR=$10 but instead it is assigning the value of $1 followed by a ...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    5

    bash scripting arguments beyond $9



    I have a bash script and I want to get the tenth argument I pass in as
    MYVAR=$10

    but instead it is assigning the value of $1 followed by a 0 to the MYVAR.

    Is there any special syntax to reference arguments beyond $9 ?

  2. #2
    Just Joined!
    Join Date
    Apr 2007
    Posts
    5
    ${10} does it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •