XiangyangLiu66 / Stat679Notes

0 stars 0 forks source link

HW for 10/3 (Xiangyang Liu) #2

Open XiangyangLiu66 opened 6 years ago

XiangyangLiu66 commented 6 years ago

@coraallencoleman @cecileane

Exercise for 10/3

Below is the one liner using sed to remove commas and quotes within the 'minimum' column(bash3 on a Mac):

sed -e 's/\(".*\),\(.*"\)/\1\2/g' tableofSNPs.csv | sed 's/"//g' > newtable.csv 

Below is the one liner to check the result:

sed 's/[^,]//g' newtable.csv | head -1