[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: How to truncat



The technique I have long used is to apply column addition, and then delete
the column.

To be less cryptic, bring up the file to be truncated, at the head of the
file define a very large right margin, large enough so that every entry is a
single line (spilling off of the screen). Then place the cursor 12 or 16
characters from the left side of the first line, hit Ctrl-F1, move your
cursor to the end of the last line in the file, hit F1 or Ctrl-F1, and then
hit Del. If the last line is shorter than some others, either repeat the
process or pad the last line with dummy characters (even spaces), until it
equals or exceeds the longest line.

The whole process should not take more than a minute or two.

Fred Gross
----- Original Message -----
From: "Norman Bauman" 
To: 
Sent: Sunday, January 26, 2003 10:09 PM
Subject: How to truncat


> I have a file in XyWrite (3.55) which contains entries like the following,
> each one a single line ended by a carrier return. I would like to get a
> file in which each of the lines is truncated, after about 12 or 16
> characters. (The reason is that I want to sort them and find the unique
> journal abbreviations.) I have about 500 lines so it would be tedious to
do
> it by hand. Is there an easy way to truncate lines like this, using simple
> functions of XyWrite, DOS utilities, or the usual programs I'm likely to
> have around? I could write a XyWrite macro to define the first few words
in
> the file, and copy it to a second file, since some of the publication
names
> are 3 or 4 words. Or I could have a macro start define, cursor over N
> spaces, end define, and copy it to a second file. But that sounds clunky.
> There should be an easy way.
>
> SciAm, Feb 2002, Down with the bad, up with the good, Thomas Maeder.
> Vaccines to enzymes on the cholesterol cascade raise HDL and lower LDL in
> rabbits, and are now in phase II trials.
>
> NEJM, 24 Jan 2002, 346(4), CHOP chemotherapy plus rituximab in elderly
> patients with diffuse large B-cell lymphoma, B. Coiffier et al.
> Cyclophosphamide, doxorubicin, vincristine and prednisone (CHOP) were used
> with and without rituximab. The response with rituximab was significantly
> higher.
>
> JAMA, 23/30 Jan 2002, 287(4), Chelation therapy for ischemic heart
disease:
> a randomized controlled trial, Merril L. Knudtson et al. "There is no
> evidence to support a beneficial effect of chelation therapy in patients
> with ischemic heart disease, stable angina, and a positive treadmill test
> for ischemia."
>
> -------------------------------------------------------
> 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
> -------------------------------------------------------
>