ExamVeda
Login
Home
This question belongs to Computer Science Linux
Linux
?

What is the output of this program?
#!/bin/bash
echo "Which file do you want to check"
read x
until [ -e $x ]
do 
echo "The file does not exist. Do you want to create? y/n"
read a
if [ $a = y ]; then  
touch $x
echo "Your file has been created successfully."
fi
done
echo "The file is present in this directory"
exit 0

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.