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

Hi Diotalevi,

Unfortunately, this one didn't quite do the trick. It matches the first word of each column on the same line and prints out the first word/unit in each line, like this:

Indice 1. KETER 4. HESED + 131 1. Quando la luce dell'infinito 2. Abbiamo diversi e curiosi orologi 23. L'analogia dei contrar +i 133 24. Sauvez la faible Aisch +a 136 2. HOKMAH 25. Questi misteriosi iniz +iati 139 26. Tutte le tradizioni de +lla terra 141 3. In hanc utilitatem clementes angeli

Output

First column output: Indice 1. 2. 3. Second column output: 1. 4. Quando Abbiamo 24. 2. 26. In

The output reminds me of one of William Burroughs' ideas. Really cool, actually, but not what I had in mind. Obviously better than I could come up with, though. Plus you didn't have the input file to test it. And of course, the big AND... you came up with your code in about five minutes, well 16 minutes, but you were answering other questions, too.

--
Allolex

Replies are listed 'Best First'.
Re^3: making a single column out of a two-column text file
by diotalevi (Canon) on Feb 26, 2003 at 05:18 UTC

    Oh... yeah, that data is completely different than I expected. Ah well. That unpack solution someone else posted was nice for fixed length fields.