grep --binary-files=text -o 'New name for client[^^B]*' 2013-07-17_19-12-42.dcrec
的[^^B]*
部分是定期[^
其次CTRL + v其次CTRL + b和常規]
,這意味着任何不是^B
控制字符的字符。
輸出:
New name for client 7, keyID = 562830, IP = 91.193.208.105 : Sobieski
New name for client 8, keyID = 255344, IP = 63.153.210.124 : Cultist O Khorne
New name for client 11, keyID = 5061431, IP = 116.240.255.94 : Sammy
New name for client 12, keyID = 5061453, IP = 196.20.195.114 : Dirk Diggler
New name for client 13, keyID = 4278381, IP = 188.110.185.183 : CSTO
New name for client 14, keyID = 369397, IP = 81.110.45.165 : General Ivan
New name for client 16, keyID = 5061651, IP = 85.4.29.162 : Thatsuseless
New name for client 17, keyID = 5061688, IP = 90.213.51.77 : NewPlayer
New name for client 17 (NewPlayer), keyID = 5061688, IP = 90.213.51.77 : MHT
New name for client 18, keyID = 4905930, IP = 174.109.181.108 : Solo Wing Pixy
New name for client 19, keyID = 5061695, IP = 85.4.236.70 : Quizzman
New name for client 21, keyID = 2745089, IP = 95.128.68.231 : NewPlayer
New name for client 18 (Solo Wing Pixy), keyID = 4905930, IP = 174.109.181.108 : Jane The Killer
New name for client 22, keyID = 5061536, IP = 195.91.236.65 : POWERFUCKER
New name for client 24, keyID = 5061698, IP = 86.121.66.142 : TheDoctor
New name for client 26, keyID = 5061585, IP = 5.69.250.33 : Hydrogen
如果您想篩選出像行:
New name for client 17 (NewPlayer), keyID = 5061688, IP = 90.213.51.77 : MHT
New name for client 18 (Solo Wing Pixy), keyID = 4905930, IP = 174.109.181.108 : Jane The Killer
使用上述的變型:
grep --binary-files=text -o 'New name for client [0-9]\+,[^^B]*' \
2013-07-17_19-12-42.dcrec
這些截圖是一點點很難讀... –