Jump to content

Input and out put text help please.


 Share

Recommended Posts

Hello,

I recently needed something kind of odd, yet I couldn't figure out how to do it, but I assume autoit can. I couldn't seem to come up with a reasonable way, though.

In a text file I have a input like so:

[4/15/2007 4:27:24 PM] Found IP .167 in sqw4//1 after 4 games (4 effective)
[4/15/2007 4:28:48 PM] Found IP .167 in bbfa11//1 after 11 games (11 effective)
[4/15/2007 4:29:04 PM] Found IP .167 in bas13//1 after 13 games (13 effective)
[4/15/2007 4:29:19 PM] Found IP .167 in tgzdn14//1 after 14 games (14 effective)
[4/15/2007 4:30:22 PM] Found IP .167 in vphe19//1 after 19 games (19 effective)
[4/15/2007 4:30:45 PM] Found IP .167 in bbzmv21//1 after 21 games (21 effective)
[4/15/2007 4:35:01 PM] Found IP .167 in hfda45//1 after 45 games (25 effective)
[4/15/2007 4:35:58 PM] Found IP .167 in kvn50//1 after 50 games (43 effective)
[4/15/2007 4:58:11 PM] Found IP .167 in mxw173//1 after 173 games (68 effective)
[4/15/2007 5:06:04 PM] Found IP .167 in nerms216//1 after 216 games (110 effective)
[4/15/2007 5:38:06 PM] Found IP .167 in yfhc391//1 after 391 games (269 effective)
[4/15/2007 5:44:27 PM] Found IP .167 in sxtkf425//1 after 425 games (89 effective)
[4/15/2007 5:59:32 PM] Found IP .167 in ftfsa506//1 after 506 games (217 effective)
[4/15/2007 6:01:43 PM] Found IP .167 in qxqq518//1 after 518 games (340 effective)

I need to convert each line in the text file from:

[4/15/2007 4:27:24 PM] Found IP .167 in sqw4//1 after 4 games (4 effective)

to:

!kill sqw4/1 wscl
(Of course the texthere/number changes from line to line). Any suggestions?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...