Shell: January 2011 Archives

Create UTF-8 CSV in BASH script

user-pic
Vote 0 Votes

echo -n $'\xEF\xBB\xBF' > test.csv
echo "測試1,測試2,123" >> test.csv
echo "第二行" >> test.csv

for PHP, ref. UTF-8 CSV for Excel

About this Archive

This page is an archive of entries in the Shell category from January 2011.

Shell: November 2010 is the previous archive.

Shell: February 2011 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives