Skip to content

Instantly share code, notes, and snippets.

@fjossinet
Created June 16, 2012 12:28
Show Gist options
  • Save fjossinet/2941217 to your computer and use it in GitHub Desktop.
Save fjossinet/2941217 to your computer and use it in GitHub Desktop.
Extract all RefSeq ids from NCBI genomes list for E coli
wget -qO - "http://www.ncbi.nlm.nih.gov/genome/genomes/167?&subset=complete&limit=refseq" | grep 'title="chromosome">Chr' | sed -E 's/.+(NC_.+|NZ_.+)/\1/' | cut -d \< -f 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment