Text filtering from list

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
H5N1 Bird Flu
Posts: 9
Joined: 23 Jan 2012 14:45

Text filtering from list

#1 Post by H5N1 Bird Flu » 23 Jan 2012 15:03

Hi to everyone

I need helpwith filtering this text cause im really confused from this via batch...try many variants ,but without succes... :?

text:
flycheat79.191.68.110 fastshoot 88.207.27.41 fastshoot 82.100.48.4 fastshoot77.234.232.192
wallhack 86.81.78.143 hack109.60.121.29 fastshoot94.127.128.126 hack85.132.176.228

output which I need should be in txt:
1. flycheat "IP21"
2. fastshoot "IP2"
and so on....

Thank u very much for any help....

aGerman
Expert
Posts: 4740
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Text filtering from list

#2 Post by aGerman » 23 Jan 2012 15:28

Thats no "text". It looks more like a part of a database. The data is separated by some unprintable ASCII characters.
The whole issue sounds a bit dubious to me. If you're the owner of the data then open the file with the associated program. If not you should keep your hands off.

Regards
aGerman

H5N1 Bird Flu
Posts: 9
Joined: 23 Jan 2012 14:45

Re: Text filtering from list

#3 Post by H5N1 Bird Flu » 24 Jan 2012 11:37

Yes you have right..it´s DAT file ,but it is possible to open with Notepad. This DAT file is a part of MP game.Contains unwanted players who has cheating on my game server.Problem is that direct in game console im able to see just last 100 BANs. So im not able to remove older BANs caus I don´t see them.So I want to create utility to make whole list of BANs. Reason isn´t hack or steal some data. It´s data which I created.

aGerman
Expert
Posts: 4740
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Text filtering from list

#4 Post by aGerman » 24 Jan 2012 12:18

You could also open an exe file with notepad but that does not influence the incapability of batch to process binary files :!:
You need to know the structure of that dat file. If you know it you could read and process it in a binary manner (using programming languages like C, C++, C#, VB, Java or whatever language that is able to read binary data).

Regards
aGerman

H5N1 Bird Flu
Posts: 9
Joined: 23 Jan 2012 14:45

Re: Text filtering from list

#5 Post by H5N1 Bird Flu » 24 Jan 2012 12:44

I know something about structure of that DAT file ,but it doesn´t matter now. I expect that when I see text via notepad I will be able to sort him ,but it isn´t possible.

I don´t know that :) ..thx for explaining to me...

..at last thx again for your atttention to me....

If you want you can delete this thread (cause isn´t related to DOS I think after explain :) )

Regards
H5

Post Reply