Archive for October, 2008

Output references from pubmed

Thursday, October 16th, 2008

There is a quick way to go through all newly published papers from a selected journal and also download the citation.
Go to
http://www.ncbi.nlm.nih.gov/sites/entrez

Then type in for example,

“BMC Bioinformatics” [journal]
“PLOS Computational Biology” [journal]
“Nat Struct Mol Biol” [journal]
“Cell” [journal]

and select sort by pub date, then you will get all the papers published in this journal and sorted by publication date(latest first). Choose display “Abstract” so that you could read their abstracts and select whatever you are interested, and then use display “Medline” and send to “file”, save the file ,and done!

view a certain line of all selected files

Tuesday, October 14th, 2008

Peter taught me a very useful tip to display a certain line of all selected files.

Suppose I want to see the 10th line of all cpp files:

bash
for f in *.cpp; do head -10 $f | tail -1; done

Live to learn. 🙁