annotate tab2csv.sh @ 5:d316d1155e08 draft

Uploaded
author sem4j
date Wed, 25 Sep 2013 02:45:30 -0400
parents 701007edc6cf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
701007edc6cf Uploaded
sem4j
parents:
diff changeset
1 if [ -e $3 ]
701007edc6cf Uploaded
sem4j
parents:
diff changeset
2 then
701007edc6cf Uploaded
sem4j
parents:
diff changeset
3 sed -e 's/\t/,/g' $1 > $2
701007edc6cf Uploaded
sem4j
parents:
diff changeset
4 else
701007edc6cf Uploaded
sem4j
parents:
diff changeset
5 sed -e 's/\t/","/g' $1 | sed -e 's/^\|$/"/g' > $2
701007edc6cf Uploaded
sem4j
parents:
diff changeset
6 fi