中国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-06 23:30
48,040 topics / 350,125 posts / today 1 new / 48,252 members
DOS批处理 & 脚本技术(批处理室) » Please enter the specific content of the batch script related to deleting lines that you need to translate. Just providing "求一个删除行的批处理" alone doesn't have the specific content to translate. Please provide the actual batch script content that needs to be translated.
Printable Version  2,989 / 13
Floor1 tclshx Posted 2006-10-18 05:13
中级用户 Posts 64 Credits 249
There is an A.TXT file. When finding JKLJHLL in it, delete the lines containing the string JKLJHLL (case-insensitive).
Floor2 pengfei Posted 2006-10-18 05:21
银牌会员 Posts 485 Credits 1,218 From 湖南.娄底

I wonder if this is the effect the poster requested...
Floor3 lxmxn Posted 2006-10-18 07:48
版主 Posts 4,938 Credits 11,386
  Give it a thumbs up~~

  findstr /v is clever~~
Floor4 tclshx Posted 2006-10-18 08:16
中级用户 Posts 64 Credits 249
Originally posted by pengfei at 2006-10-18 05:21 AM:

I wonder if this is the effect the poster requested...

Thank you!
Floor5 mountvol Posted 2006-10-18 11:07
初级用户 Posts 117 Credits 186
findstr /ivc:"JKLJHLL" a.txt >b.txt
Floor6 lxmxn Posted 2006-10-18 11:25
版主 Posts 4,938 Credits 11,386

This is even stronger, I support it!!!
Floor7 pengfei Posted 2006-10-18 22:48
银牌会员 Posts 485 Credits 1,218 From 湖南.娄底
Originally posted by mountvol at 2006-10-12:07:
findstr /ivc:"JKLJHLL" a.txt >b.txt


OK, you can completely do without FOR here.
Floor8 redtek Posted 2006-10-18 22:52
金牌会员 Posts 1,147 Credits 2,902
Originally posted by mountvol at 2006-10-18 11:07:
findstr /ivc:"JKLJHLL" a.txt >b.txt


Top~Gave you 6 points~: )
Floor9 pillow Posted 2007-12-12 15:34
初级用户 Posts 82 Credits 196
Searching "delete lines" only found this one post.
The problem I need to handle is a bit extreme. I need to compare the lines that are in file A but not in file B.
There are two TXT files, with more than 5000 lines (named A) and more than 2000 lines (named B) respectively.
If I use the above > method, wouldn't it be necessary to generate thousands of files?
And it doesn't seem to be efficient. Does anyone know if there is a better idea using P to handle it?
Floor10 ZJHJ Posted 2007-12-16 22:15
高级用户 Posts 374 Credits 609
Originally posted by pillow at 2007-12-12 15:34:
Searching "delete line" only finds this one post,
The problem I need to handle is a bit extreme. I need to compare the lines that are in file A but not in file B.
There are two TXT files, with more than 5000 lines (named A) and 20 ...


Use B + A ------ Use delete duplicate lines ------ Find the number of marked lines between B and A ------ Use more +n to extract
Floor11 hellen Posted 2008-02-27 20:45
中级用户 Posts 32 Credits 205
I haven't used this command yet, and I don't know how to!
Floor12 kollar Posted 2008-03-05 10:33
新手上路 Posts 3 Credits 8
After using it in my example, the error "FINDSTR: The search string is too long" is reported. What should I do?
Floor13 pyjhhh Posted 2008-06-02 03:22
初级用户 Posts 26 Credits 54
Finding Chinese characters is really slow
Floor14 liyyhh Posted 2008-06-02 14:02
初级用户 Posts 27 Credits 48
It's professional enough, I can't understand.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023