|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『楼 主』:
find搜索字符串问题
使用 LLM 解释/回答一下
find "ati" new.ini && 7z.exe x "vga\ati.7z" -oc:\windows\drivers\vga\ati
这样有个问题就是
NEW.INI文件里面有个正在识别显卡并解压... %<0@V"s
FINDSTR: 忽略 /c !B
ation) (32 ]GPT @pd
MB) ~{1.|W{`u>
这样就会搜索到错误的ATI 我想搜索的是ATI芯片 而不是这个
有没有办法 只搜索ATI独立的单词 而不是某个字符串里带有ATI这个单词!?
意思可能没说 清楚 反正就是 想只搜索ATI 是独立的一个!
望高手解答!
find "ati" new.ini && 7z.exe x "vga\ati.7z" -oc:\windows\drivers\vga\ati
There is a problem here:
In the NEW.INI file, there is a part where it's identifying the graphics card and extracting... %<0@V"s
FINDSTR: ignoring /c !B
GPT @pdati
MB) ~{1.|W{`u>
This will search for the incorrect ATI. I want to search for ATI chips, not this.
Is there a way to only search for the independent word "ATI" and not a word that contains the word ATI!?
The meaning may not be clear. Anyway, I just want to search for ATI alone!
Hope the expert can answer!
|
|
2008-7-11 21:33 |
|
|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
自己顶顶 等高手来答!
Bump it myself, waiting for experts to answer!
|
|
2008-7-11 22:01 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
findstr /ic:"\<ati\>" new.ini
findstr /ic:"\<ati\>" new.ini
|
|
2008-7-11 23:11 |
|
|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
谢谢 LXMXN 版主! 我存下了!
Thank you, moderator LXMXN! I've saved it!
|
|
2008-7-11 23:15 |
|
|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
顺便问下"\<ati\>" 怎么理解呢
By the way, how to understand "\<ati\>"
|
|
2008-7-11 23:20 |
|
|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
"\<ati\>" \是空格的意思吗?
Is "\<ati\>" the meaning of a space?
|
|
2008-7-11 23:23 |
|
|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
我运行了 但是没有成功啊!
findstr /ic:"<\ati\>" new.ini &&md 1
目录下有个NEW.INI 里面 只有3个字 ATI 但是 我使用了 缺无法创建1这个文件夹 不知道何故?
I ran it but it didn't succeed!
findstr /ic:"<\ati\>" new.ini &&md 1
There is a NEW.INI in the directory with only 3 characters "ATI" in it, but I can't create the 1 folder. I don't know why!
|
|
2008-7-11 23:36 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
因为你太粗心了,仔细看看我的命令格式是怎么写的。
Because you are too careless, take a close look at how my command format is written.
|
|
2008-7-13 00:45 |
|
|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
findstr /ic:"\<ati\>" new.ini 我复制了也没用!
findstr /ic:"\<ati\>" new.ini I copied it but it didn't work!
|
|
2008-7-14 03:57 |
|
|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
我想我不是粗心 而是没有理解!还请lxmxn版主指教
I think I'm not careless but didn't understand! Still, please ask moderator lxmxn for guidance
|
|
2008-7-14 04:01 |
|
|
whitegod
初级用户
 
积分 26
发帖 13
注册 2007-11-15 来自 江苏无锡
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
我也想知道这句的详细信息,斑竹,好好讲讲呀
I also want to know the detailed information of this sentence, moderator, please explain it carefully.
|
|
2008-7-14 09:42 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
哦,我是粗心了,掉了一个 /r参数,正确的应该是
findstr /irc:"\<ati\>" myfile.txt
就是不区分大小写(/i),搜索正则模式(/r)字符串(\<ati\>),\<代表一个单词的前边界,而\>代表一个单词的后边界。
Oh, I was careless and missed a /r parameter. The correct one should be
findstr /irc:"\<ati\>" myfile.txt
That is, case-insensitive (/i), search for the regular expression pattern (/r) string (\<ati\>), where \< represents the start of a word and \> represents the end of a word.
|
|
2008-7-14 13:57 |
|
|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
谢谢 lxmxn版主 问题总算有了个着落 粗略的明白了大意 只有 什么是正则模式 和单词的前后边界 还是有点模糊
Thanks, moderator lxmxn. The problem finally has a solution. I roughly understand the general idea, but I'm still a bit fuzzy about "what is the regular mode and the word boundaries".
|
|
2008-7-15 22:31 |
|
|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
正则表达式是用来匹配固定字符串格式的。
比如规定一个字符串中,只能是数字,只能是字母,或者只能是数字,字母和下划线( _ )的组合。甚至,只能有3个数字,后面跟2个字母等,非常灵活。
意思是只能是ATI 其他统统不行 不知道 理解可对否?
Regular expressions are used to match fixed string formats.
For example, it is stipulated that in a string, it can only be numbers, only letters, or a combination of numbers, letters, and underscores (_). Even, there can only be 3 numbers followed by 2 letters, etc., which is very flexible. Does it mean that it can only be ATI and nothing else? I wonder if the understanding is correct?
|
|
2008-7-15 22:35 |
|
|
YoDe
中级用户
  
积分 224
发帖 102
注册 2007-11-9
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
\<代表一个单词的前边界,而\>代表一个单词的后边界 至于这句 我无法理解
\<represents the front boundary of a word, and \> represents the back boundary of a word. As for this sentence, I can't understand it.
|
|
2008-7-15 22:36 |
|