3 votes 3 votes Which of the following shell scripts will produce the output “my first script”? for i in my first script { echo –i $i } for my first script; do echo –n; done for i in my first script; do echo –i $i; done for n in my first script; do echo –i $i; done Operating System ugcnetcse-sep2013-paper3 unix shell-script non-gate + – go_editor asked Jul 24, 2016 • recategorized Nov 12, 2017 by Sanjay Sharma go_editor 1.6k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes ans should be C for loop has control variable i which will be assigned he value after it and do apply for loop to print it should be enclosed in do...done block echo -i $i display the currrent contents of i Sanjay Sharma answered Jul 24, 2016 Sanjay Sharma comment Share Follow See all 0 reply Please log in or register to add a comment.