Sunday, March 9, 2014

File format conversion, ^M linebreak to 'normal' linebreak in a file opened in vim


 This is the command in vim
:%s/^V^M/^V^M/g
where ^V^M means type Ctrl+V, then Ctrl+M.


:%s/A/B/  Replace A by B
 g    global

Prior to run blast search, we need to reformat file containing accession numbers copied from excel or word documents.