title: From bash to ksh
body: <p>Is there any tutorial to know how to translate code from bash to ksh? How can I write this line of code in korn?</p>
  
  <pre><code>export TYPE_CANAL=$(echo $TYPE | sed "s/${TYPE_APACHE// /\\|}//g")
  </code></pre>
  
  <p>LAST EDITED: </p>
  
  <p>Explanation of line code:</p>
  
  <p>If TYPE_APACHE is "abc bcd" then ${TYPE_APACHE// /\|} will be "abc\|bcd". The variable expansion using the double // is a global replacement of " " (space character) with \|</p>
  
  <p>I have two variables ($TYPE and $TYPE_APACHE). All values in $TYPE_APACHE are included in $TYPE. 
  I want a new variable named TYPE_CANAL_TMP with all values excluding those which are in $TYPE_APACHE. </p>