changeset 2:701007edc6cf draft

Uploaded
author sem4j
date Wed, 25 Sep 2013 02:03:47 -0400
parents 86c92a1d55fa
children abea0f0eb524
files tab2csv.sh
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tab2csv.sh	Wed Sep 25 02:03:47 2013 -0400
@@ -0,0 +1,6 @@
+if [ -e $3 ]
+then 
+sed -e 's/\t/,/g' $1 > $2
+else 
+sed -e 's/\t/","/g' $1 | sed -e 's/^\|$/"/g' > $2
+fi