Skip to content

Instantly share code, notes, and snippets.

@rossmounce
Last active December 20, 2015 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rossmounce/6111496 to your computer and use it in GitHub Desktop.
Save rossmounce/6111496 to your computer and use it in GitHub Desktop.
A grep command for all the different Reference List headings encountered in just two years worth of Zootaxa articles. Some post-publication standardization needed me thinks!
egrep "(^Citations$|Cited Literature$|Literature [cC]ited$|Literatures cited$|Literature Cited\:$|References$|^references$|Refrences$|References [cC]ited$|REFERENCES$|Bibliography$|BIBLIOGRAPHY$|LITERATURE CITED$|LITERATURE cited$|REFERENCES CITED$|References \[not in Zootaxa format\]$|^Reference$|^Literature$|^References \(asterisks|^References \(except original descriptions|Litterature cited$|Literture Cited$)"
@rossmounce
Copy link
Author

In full, this covers 23 variants encountered so far, more to come I suspect:

Citations
Cited Literature
LITERATURE CITED
LITERATURE cited
Literature Cited
Literature Cited:
Literature cited
Litterature cited
Literatures cited
Literture Cited
Literature
REFERENCES
References
references
Refrences
REFERENCES CITED
References Cited
References cited
BIBLIOGRAPHY
Bibliography
References [not in Zootaxa format]
References (asterisks
References (except original descriptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment