I'd like to change the entries of each fasta file
gi|556503834|ref|NC_000913.3|Escherichia coli str. K-12 substr. MG1655, complete genome
which means i want to remove the accession number and just want to keep the species name, at the same time all the space is replaced by underscore. either R or unix is ok.
Thank you very much.