title: replacement for cut --output-delimiter
body: <p>I created a script that was using</p>
  
  <pre><code>cut -d',' -f- --output-delimiter=$'\n'
  </code></pre>
  
  <p>to add a newline for each command separated value in RHEL 5, for e.g.</p>
  
  <pre><code>[root]# var="hi,hello how,are you,doing"
  [root]# echo $var
  hi,hello how,are you,doing
  [root]# echo $var|cut -d',' -f- --output-delimiter=$'\n'
  hi
  hello how
  are you
  doing
  </code></pre>
  
  <p>But unfortunately when I run the same command in Solaris 10, it doesn't work at all :( !</p>
  
  <pre><code>bash-3.00# var="hi,hello how,are you,doing"
  bash-3.00# echo $var
  hi,hello how,are you,doing
  bash-3.00# echo $var|cut -d',' -f- --output-delimiter=$'\n'
  cut: illegal option -- output-delimiter=
  
  usage: cut -b list [-n] [filename ...]
         cut -c list [filename ...]
         cut -f list [-d delim] [-s] [filename]
  </code></pre>
  
  <p>I checked the man page for 'cut' and alas there is no ' --output-delimiter ' in there !</p>
  
  <p>So how do I achieve this in Solaris 10 (bash)? I guess awk would be a solution, but I'm unable to frame up the options properly.</p>
  
  <p>Note: The comma separated variables might have " " space in them.</p>