Created
July 17, 2015 17:36
-
-
Save aammd/31eff86ca7160a780cbb to your computer and use it in GitHub Desktop.
some genera, where repeated genera have been annoyingly abbreviated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN {FS = "," | |
genus = "0"} | |
$1 ~ /[A-Z][a-z]/ {genus = $1} | |
{ | |
$2 = genus | |
printf "%s %s\n", $1, $2 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ardea | |
A. | |
A. | |
Hylobates | |
H. | |
Mus | |
Balenoptera | |
B. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment