[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Reverse lines in a file?
- Subject: Reverse lines in a file?
- From: Norman Bauman nbauman@xxxxxxxx
- Date: Mon, 28 Jun 2004 21:51:58 -0400
I have a file of citations as follows below, some of them 160 characters
long or more. I want to put it in reverse order. I can think of a lot of
clunky ways to do it. Can anybody think of a simple way? I like to use
XyWrite programs when they're simple, and DOS batch files or utilities when
they're simple.
(BTW this is a list of citations of the last volume of the New England
Journal of Medicine from Medline. Medline will display citations only in
reverse chronological order, and it's more convenient for me to have them
in chronological order. It's also more convenient for me to have them in
Date, Title and Author sequence.)
Mohamadnejad M, Malekzadeh R.
Hepatitis B.
2004 Jun 24;350(26):2719-20.
Sollecito TP, Alawi F.
Dysplastic leukoplakia.
2004 Jun 24;350(26):2718-9; author reply 2718-9.
Gordon PV.
Postnatal dexamethasone for lung disease of prematurity.
2004 Jun 24;350(26):2715-8; author reply 2715-8.
Watchko JF, Brozanski BS.
Postnatal dexamethasone for lung disease of prematurity.
2004 Jun 24;350(26):2715-8; author reply 2715-8.
Bydder S, Spry N.
Chemotherapy for pancreatic cancer.
2004 Jun 24;350(26):2713-5; author reply 2713-5.
-------------------------------------------------------
Norman Bauman
411 W. 54 St. Apt. 2D
New York, NY 10019
(212) 977-3223
http://www.nasw.org/users/nbauman
Alternate address: nbauman@xxxxxxxx
-------------------------------------------------------