Files
annotate/detectors/normalize/tools/selectViridiplantae.sh
Eric Coissac 2261fa1c48 Switch from awk to gawk
Former-commit-id: 70b104ab89d4c90a35925dbbcacdafaf6c1f2836
Former-commit-id: bf29abf66345cbc0ca81461064dcca63dfd4c15c
2015-11-08 19:33:00 +01:00

8 lines
156 B
Bash
Executable File

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