Computing.Net > Forums > Linux > sed - bib file, reorder names

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

sed - bib file, reorder names

Reply to Message Icon

Name: stilllikepine
Date: April 17, 2007 at 13:51:35 Pacific
OS: linux - ubuntu
CPU/Ram: p4
Product: xpc
Comment:

Hello,
I am having trouble with my bibtex file.
When I downloaded entries from medline they were formatted like:
Author = {J. T. Blackburn and B. L. Riemann and J. B. Myers and S. M. Lephart}
However for apacite style to work they need to be like:
Author = {Blackburn, J. T., and Riemann, B. L. etc}

I am trying to use sed to reorganize the author names

I got as far as this:
sed "s/^\([A-Z]\. \), \([A-Z]\. \), \([A-Z][A-Za-z]*\)/\3 \1 \2/" test.bib

but there seems to be an error

Any help would be appreciated.

JC



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Booting Linux from a ide ... Linux File system



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: sed - bib file, reorder names

Shell script 2 accept file/dir name www.computing.net/answers/linux/shell-script-2-accept-filedir-name/22197.html

named errors on named.conf file www.computing.net/answers/linux/named-errors-on-namedconf-file/30006.html

help writing script to read files n www.computing.net/answers/linux/help-writing-script-to-read-files-n/27648.html