中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-19 10:09
47,814 topics / 349,908 posts / today 0 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Proceeding to the search string issue in find
Printable Version  2,695 / 17
Floor1 YoDe Posted 2008-07-11 21:33
中级用户 Posts 102 Credits 224
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!
Floor2 YoDe Posted 2008-07-11 22:01
中级用户 Posts 102 Credits 224
Bump it myself, waiting for experts to answer!
Floor3 lxmxn Posted 2008-07-11 23:11
版主 Posts 4,938 Credits 11,386
Floor4 YoDe Posted 2008-07-11 23:15
中级用户 Posts 102 Credits 224
Thank you, moderator LXMXN! I've saved it!
Floor5 YoDe Posted 2008-07-11 23:20
中级用户 Posts 102 Credits 224
By the way, how to understand "\<ati\>"
Floor6 YoDe Posted 2008-07-11 23:23
中级用户 Posts 102 Credits 224
Is "\<ati\>" the meaning of a space?
Floor7 YoDe Posted 2008-07-11 23:36
中级用户 Posts 102 Credits 224
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!
Floor8 lxmxn Posted 2008-07-13 00:45
版主 Posts 4,938 Credits 11,386
Because you are too careless, take a close look at how my command format is written.
Floor9 YoDe Posted 2008-07-14 03:57
中级用户 Posts 102 Credits 224
findstr /ic:"\<ati\>" new.ini I copied it but it didn't work!
Floor10 YoDe Posted 2008-07-14 04:01
中级用户 Posts 102 Credits 224
I think I'm not careless but didn't understand! Still, please ask moderator lxmxn for guidance
Floor11 whitegod Posted 2008-07-14 09:42
初级用户 Posts 13 Credits 26 From 江苏无锡
I also want to know the detailed information of this sentence, moderator, please explain it carefully.
Floor12 lxmxn Posted 2008-07-14 13:57
版主 Posts 4,938 Credits 11,386
Oh, I was careless and missed a /r parameter. The correct one should be



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.
Floor13 YoDe Posted 2008-07-15 22:31
中级用户 Posts 102 Credits 224
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".
Floor14 YoDe Posted 2008-07-15 22:35
中级用户 Posts 102 Credits 224
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?
Floor15 YoDe Posted 2008-07-15 22:36
中级用户 Posts 102 Credits 224
\<represents the front boundary of a word, and \> represents the back boundary of a word. As for this sentence, I can't understand it.
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023