I really appreciate the help.
Unfortunately, when I type:
efetch -db pubmed -id 24670762 -format xml | xtract -pattern PubmedArticle -element MedlineCitation/PMID
or
efetch -db pubmed -id 24670762 -format xml | xtract -pattern PubmedArticle -element MedlineCitation/PMID -block Author -sep " " -tab "" -element "&COM" Initials,LastName -COM "(,` )"
I get the same as before; no error, but also no output. Would you've any ideas?
When I type:
efetch -db pubmed -id 24670762 -format xml
I can see the full XML output though, so I know it's not a connection etc problem. I did also look up that link you sent, I appreciate it, it's just something that's new to me, so that's the link I've been following to get this far, but now I'm just a bit stuck.