ЁЯУв 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
    More Shell Scripting Questions
    ask-question