Shell Scripting Question:

How do you write a for loop in shell?

Answer:

for {variable name} in {list} do {statement} done

Read All 30 Shell Scripting Questions
Previous QuestionNext Question
What’s a way to do multilevel if-else’s in shell scripting?How do you find out the current directory you’re in?