Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Posts
    31

    Unanswered: passing an array as a parameter

    can i pass an array as a parameter for a shell script, and then assign all its elements to another array in the script? if yes plz help me out...i am using korn shell.

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool


    Yes you can pass an array as parameter using quotes:

    MyScript.ksh "${array[*]}"

    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Posting Permissions

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