Which of the following shell scripts will produce the output “my first script”?
A. For i in my first script {echo –i $i}
B. For my first script; do echo –n; done
C. For i in my first script; do echo –i $i; done
D. For n in my first script; do echo –i $i; done
Answer:C
Which of the following shell scripts will produce the output “my first script”?
A. For i in my first script {echo –i $i} B. For my first script; do echo –n; done C. For i in my first script; do echo –i $i; done D. For n in my first script; do echo –i $i; done