📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    How can you pass command-line arguments to a shell

    script?
    A Using $1, $2, … Correct Answer Incorrect Answer
    B Using &1, &2, … Correct Answer Incorrect Answer
    C Using %1, %2, … Correct Answer Incorrect Answer
    D Using #1, #2, … Correct Answer Incorrect Answer
    E Using @1, @2, … Correct Answer Incorrect Answer

    Solution

    $1, $2, etc., represent the first, second, and subsequent arguments passed to the script.

    Practice Next
    ask-question