Thanks again for your help. I went and took a closer look at the input data, which is ghostscript output from pdftotext. od showed me that the program really is producing spaces in all the spots I thought it was. (I think I originally figured this out when I loaded the file into a text editor and found myself using 'delete' a lot.) Anyway, so what you said doesn't apply 100 percent to this problem, but it will help me a lot in the future, I'm sure.

I really have to agree with you about the intelligence matter, but I rely on ghostscript a lot, so I'm stuck. Plus all of this is going to come in handy when I create my research database.

od -c output:

--- START UGLY BIT --- 0013040 h i c h w e c h o s e b +e 0013060 c a u s e o f i t s r e +l 0013100 a t i v e l y s i m - 0013120 t i f i c a t i o n +w 0013140 a s e a s i e r w i t h +s 0013160 p o n t a n e o u s s p e e +c --- END UGLY BIT ---

--
Allolex


In reply to Re: Re: Re: Re: making a single column out of a two-column text file by allolex
in thread making a single column out of a two-column text file by allolex

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.