Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 010-160 Topic 2 Question 7 Discussion

Actual exam question for LPI's 010-160 exam
Question #: 7
Topic #: 2
[All 010-160 Questions]

The file script.sh in the current directory contains the following content:

#!/bin/bash echo $MYVAR

The following commands are used to execute this script:

MYVAR=value

./script.sh

The result is an empty line instead of the content of the variable MYVAR. How should MYVAR be set in order to make script.sh display the content of MYVAR?

Show Suggested Answer Hide Answer
Suggested Answer: E

Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel