annotate tab2csv.sh @ 7:dc54d40d4748 draft

Uploaded
author sem4j
date Mon, 30 Sep 2013 04:09:00 -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