title: KSH check if string starts with substring
body: <p>I need to check if the variable has value of string which starts with specified substring.</p>
  
  <p>In Python it would be something like this:</p>
  
  <pre><code>foo = 'abcdef'
  if foo.startswith('abc'):
      print 'Success'
  </code></pre>
  
  <p>What is the most explicit way to check in Ksh whether strig <code>$foo</code> starts with substring <code>bar</code>?</p>