RuochengDong / STAT679

0 stars 0 forks source link

Mark sed exercise Ruocheng Dong #2

Open RuochengDong opened 6 years ago

RuochengDong commented 6 years ago

@cecileane @coraallencoleman

Change data format

Output check


### Extra task: A to T, T to A
If we change A to T directly and then change T to A, all original A will remain A. So, we need to change A to another character except T, then convert T to A. At last, convert those symbols to T.

sed -E 's/A/!/g' tableofSNPs.csv | sed -E 's/T/A/g' | sed -E 's/!/T/g' > tableofSNPs_recover.csv