The uploaded QQ2009 information info.db file http://upload.cn-dos.net/img/1348.rar
For example, there are the following garbled codes:
Requirement: Display the digital strings line by line.
1. Since the QQ number and the numbers in the garbled code may be connected together due to directly filtering other characters, making it impossible to distinguish, I personally think that replacement should be used.
2. Because there are digital strings like 8362-406 in the garbled code, the - should not be filtered out during filtering.
3. Since there are numbers in this garbled code, the continuous digital strings with less than 5 digits are required to be deleted.
4. Because there are digital strings like 8362-406 in the garbled code, which are not QQ numbers, the digital strings containing - in the middle are deleted.
5. Delete duplicate digital strings
The sample effect after extracting the QQ number is as follows:
[ Last edited by Hanyeguxing on 2009-6-6 at 01:52 ]
For example, there are the following garbled codes:
Sky dream? Avoid: J Yang come]CF K- Yin Yan sky dream? Avoid: Zhen s? Dead ⑽ Exquisite?
NF
515187266 9TD Home and abroad
04 435853964 -TD Umbrella 18 Yan
?
5? oYun Lei L( } ~ Put and put blocks €8362-406
Duty scold and fear u39E Thump r 515187266 >TD
ffffTA ?{-%/%//>PWf@=Oφ≌οη∠┫
Requirement: Display the digital strings line by line.
1. Since the QQ number and the numbers in the garbled code may be connected together due to directly filtering other characters, making it impossible to distinguish, I personally think that replacement should be used.
2. Because there are digital strings like 8362-406 in the garbled code, the - should not be filtered out during filtering.
3. Since there are numbers in this garbled code, the continuous digital strings with less than 5 digits are required to be deleted.
4. Because there are digital strings like 8362-406 in the garbled code, which are not QQ numbers, the digital strings containing - in the middle are deleted.
5. Delete duplicate digital strings
The sample effect after extracting the QQ number is as follows:
435853964
515187266
Originally posted by HAT at 2009-3-4 05:37:
@echo off
echo Processing, please wait for a few minutes...
sed "s//\n/g" Info.db>%temp%\a.txt
findstr ^*$ %temp%\a.txt>%temp%\b.txt
sort %temp%\b.txt>%temp%\c.txt
type nul>%temp%\d.txt
for /f "delims=" %%a in (%temp%\c.txt) do (
findstr /x /c:"%%a" %temp%\d.txt>nul 2>nul||echo.%%a>>%temp%\d.txt
)
start %temp%\d.txt
[ Last edited by Hanyeguxing on 2009-6-6 at 01:52 ]



