PrepAway - Latest Free Exam Questions & Answers

Which Korn shell syntax is used to assign the directory of the called script to a variable called mydir?

Which Korn shell syntax is used to assign the directory of the called script to a variable called
mydir?

PrepAway - Latest Free Exam Questions & Answers

A.
mydir=$(dirname $0)

B.
$mydir=$(dirname $0)

C.
mydir=${dirname $@}

D.
mydir=$(dirname $?)

Explanation:


Leave a Reply