Files
annotate/detectors/normalize/tools/selectViridiplantae.sh
Eric Coissac 37e1ecc9fd Add scripts to generate reference DBs for LSC and SSC
Former-commit-id: 77fd69c9687bfc7cfd3305299c7c81d2a9eddada
Former-commit-id: 4d09933673c30d6a9b2b9cc985b33ef23d7a99f4
2015-10-07 11:32:17 -03:00

8 lines
155 B
Bash
Executable File

#!/bin/bash
grep -A 1 ' ORGANISM' $* | \
grep -B 1 Viridiplantae | \
awk '{print $1}' | \
grep '\.gbk' | \
sed -E 's/(^.*\.gbk).$/\1/' | \
uniq