IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New UHHHHH My thought too.
I am having a really bad day. Concentration powers are weak today.

I am just asking for a quick script to do it.

I should be able to do this in shell but nothing is working for me today.

GAH! SO I am soliciting.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey

[link|http://it.slashdot.org/comments.pl?sid=134485&cid=11233230|"Microsoft Security" is an even better oxymoron than "Military Intelligence"]
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
New Re: UHHHHH My thought too.
My test file creator:
for i in range(1, 10949):\n    print '%d,foodle%d' %(i, i)


The script to process it:
fin = open('3up.txt')\nlines = fin.readlines()\nfin.close()\n\ncount = 1\nx = len(lines) / 3\n\nfor i in range(0, x):\n    print lines[i][0:-1]\n    print lines[i+x][0:-1]\n    print lines[i+(x*2)][0:-1]\n


It's not perfect, but it should get you most of the way there with a little manual cleanup at the end.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Danke. Wow.
The script took a coupla seconds to run. And it leaves the formatting of the text alone.

We (my employer etc) was using a VB v4 executable. It took 10 minutes to run on 10,000 line file. Plus it made everything fixed-width, vs comma seperated.

I only have to do a flip -m on the file when I am done if I made the file with Linux.

Tis nice.

Thanks much. I just wish days like today weren't happening.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey

[link|http://it.slashdot.org/comments.pl?sid=134485&cid=11233230|"Microsoft Security" is an even better oxymoron than "Military Intelligence"]
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
Expand Edited by folkert Feb. 23, 2005, 04:03:50 PM EST
     So I have to re-order a list for 3-up printing. - (folkert) - (21)
         Perl or Python script. -NT - (admin) - (3)
             UHHHHH My thought too. - (folkert) - (2)
                 Re: UHHHHH My thought too. - (admin) - (1)
                     Danke. Wow. - (folkert)
         What am I missing? - (jbrabeck) - (2)
             Oops, wrong answer... Disregard above. -NT - (jbrabeck) - (1)
                 See my other thanks... - (folkert)
         If you are nice I'll send this to you - (broomberg) - (13)
             Thanks anyway. - (folkert) - (12)
                 I'm in the reverse mode - (broomberg) - (9)
                     I still think that it is neater... - (ben_tilly) - (2)
                         hahahahahahahahahahah - (broomberg) - (1)
                             I didn't say feasible :-P -NT - (ben_tilly)
                     Agreed. - (folkert) - (5)
                         Sounds like a wonderful app. - (Another Scott) - (1)
                             It works and *IMNSHO* easy to use... - (folkert)
                         For directory locations - (Arkadiy) - (2)
                             True... but the app is running on... - (folkert) - (1)
                                 Can they access raw files on the Unix machine? - (Arkadiy)
                 Lemme guess, do they have trouble... - (ben_tilly) - (1)
                     Not really. - (folkert)

Your Spork God[tm] was HERE!
102 ms