title: need to convert UTF8 and UTF16 .csv files to ASCII
body: <p>I have Script to convert the .csv files which are in UTF8 format to ASCII format. now i wanted to convert the files which are in UTF16 also and if the file is in ASCII keep as is. i am using below code to change the UTF8 and UTF16 separately. help on this to do in a single script.  </p>
  
  <pre><code>#/bin/bash
  for i in *.csv
  do 
  iconv -c -f  UTF-8 -t ISO-8859-1 $i -o $i."utf8"
  mv $i."utf8" $i
  done
  </code></pre>
  
  <p>Thanks</p>