|
youxi01
高级用户
   
积分 846
发帖 247
注册 2006-10-27 来自 湖南==》广东
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
To: CCWan
兄的 findstr /v /g:b.txt a.txt >1.txt 似乎要改成
findstr /v /g:b.txt a.txt >>1.txt 更合理一点吧
To: CCWan
Brother, the command findstr /v /g:b.txt a.txt >1.txt seems to need to be changed to findstr /v /g:b.txt a.txt >>1.txt, which is more reasonable, right?
|
|
2007-3-11 04:43 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
re youxi01
这倒没有必要,因为它是一次性比较文本全部内容的,不像for是依次循环,所以即使有很多不同,也会全部输出。
这也是我试验之后发现的,兄可以试试看。
re youxi01
There is no need for that because it compares the entire content of the text at once, unlike for which loops sequentially. So even if there are many differences, it will all be output.
This is also what I found after testing. Brother, you can give it a try.
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2007-3-11 04:46 |
|
|
youxi01
高级用户
   
积分 846
发帖 247
注册 2006-10-27 来自 湖南==》广东
状态 离线
|
|
2007-3-11 05:04 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
Originally posted by chainliq at 2007-3-10 09:39:
lxmxn 兄弟的好像运行啦没反应哦`
我一开始写的时候测试是正确的,可能你把你a.txt和b.txt文件的内容改变了一下,所以导致你说的“运行没有反应”。
代码已经更新了,你再试试?
Originally posted by chainliq at 2007-3-10 09:39:
Brother lxmxn, it seems like it didn't respond when running.
When I first wrote it, the test was correct. Maybe you changed the contents of your a.txt and b.txt files, so it led to the "no response when running" you mentioned.
The code has been updated, try again?
|
|
2007-3-11 07:13 |
|
|
chainliq
高级用户
    学无尽止
积分 635
发帖 244
注册 2006-4-15 来自 广西贵港
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
`嗯,都行啦```呵呵``这个主要是想防arp呀``这样的话,``我重新收集一下下面机子的MAC,做比较后就知道哪台中标喽`,``呵呵``,各位兄弟的方法都很好``呵呵``学习当中``
Last edited by chainliq on 2007-3-13 at 04:28 AM ]
Well, it's all right... Hehe``This is mainly to prevent ARP``In this case,``I'll re-collect the MACs of the following machines, and after comparison, I'll know which one is the culprit``,``Hehe``, everyone's methods are very good``Hehe``Learning in the process``
Last edited by chainliq on 2007-3-13 at 04:28 AM ]
|

学无尽止 |
|
2007-3-13 04:26 |
|
|
SunRiseBoy
初级用户
 
积分 38
发帖 20
注册 2006-7-4
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
楼主的问题设计有问题:
如果我是一个其中的mac,原来的IP我用254,我变成100而没有任何mac再使用254这个IP你怎么发现我?
应该是先对前后mac进行判断再看IP是否变化报告MAC的设计才合理!
尽管我很菜,看不懂楼上高手的一些命令,但LZ的思路我认为的确是存在问题!
Last edited by SunRiseBoy on 2007-6-29 at 12:57 AM ]
The design of the landlord's question is problematic:
If I am one of the macs, originally using 254 for the IP, I change to 100 and no other mac is using the 254 IP anymore, how do you detect me?
It should be more reasonable to first judge the front and back macs and then see if the IP changes to report the MAC!
Although I am very naive and can't understand some commands of the experts upstairs, I think the idea of the LZ is indeed problematic!
Last edited by SunRiseBoy on 2007-6-29 at 12:57 AM ]
|
|
2007-6-29 00:47 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
大家的代码都是从比较两个文本的不同出发的,相信楼主也是这个意思吧。
Everyone's code starts from comparing the differences between two texts, and I believe the LZ means the same.
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2007-6-29 08:31 |
|
|
skystar65
初级用户
 
积分 27
发帖 12
注册 2008-8-22
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
Originally posted by ccwan at 2007-3-11 03:48 AM:
不要争论啦,每个人解决问题的方法不一样,这是好事,可以开阔思路不是吗?
我来一句话解决它吧。findstr /v /g:b.txt a.txt >1.txt
太强大了!我写了一个晚上的批处理都没搞定
版版一句代码就搞定了。。。
Originally posted by ccwan at 2007-3-11 03:48 AM:
Stop arguing. Everyone has different ways to solve problems, which is a good thing and can broaden our thinking, isn't it?
Let me solve it with one sentence. findstr /v /g:b.txt a.txt >1.txt
So powerful! I spent an entire night writing a batch script and couldn't get it done
The version master solved it with one line of code...
|
|
2009-1-5 04:21 |
|