title: syntax of for loop in linux shell scripting
body: <p>I have a problem implementing a for loop. I get this error when I execute my script</p>
  
  <blockquote>
    <p>test1.sh: 2: Syntax error: Bad for loop variable</p>
  </blockquote>
  
  <p>I don't understand this error.</p>
  
  <p>This is my script</p>
  
  <pre><code>#!/bin/bash
  for (( c=1; c&lt;=5; c++ ))
  do
  echo "Welcome $c times..."
  done
  </code></pre>
  
  <p>can any one tell me syntax for for loop in sh(in ubuntu it links to dash shell) shell in ubuntu?</p>