If script.sh is run in the current directory, it will fail. Why?'''bash$ ls -1Beach photo1.jpgPhoto1.jpgPhoto2.jpgScript.sh$ cat script.shfor i in $(ls *.jpg' >; do mv $i ${i}.bakdone

🎲 Try a Random Question  |  Total Questions in Quiz: 70  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Bash Quiz — practice the complete quiz, review flashcards, or try a random question.

MCQs For LinkedIn Skill Assessments. Bash is a Unix shell and command language.


If script.sh is run in the current directory, it will fail. Why?<br>'''bash<br>$ ls -1<br>Beach photo1.jpg<br>Photo1.jpg<br>Photo2.jpg<br>Script.sh<br>$ cat script.sh<br>for i in $(ls *.jpg' >; do<br> mv $i ${i}.bak<br>done<br>