![]() |
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-02 05:43 |
48,037 topics / 350,122 posts / today 2 new / 48,250 members |
| DOS批处理 & 脚本技术(批处理室) » Please recommend an expert tool that can work with text files (details inside) |
| Printable Version 1,025 / 2 |
| Floor1 mrhjzhang | Posted 2006-10-13 09:59 |
| 初级用户 Posts 39 Credits 100 | |
|
Like this.
Modify some text under DOS, for example: find the [network] field and add something like domain=111 after that line. Or replace "windows xp" with "xp" Or delete only the line that contains the string “cpl.hlp”. ... In the past I always used echo together with findstr, which was a real hassle, and echo is kind of lousy for that. I wonder whether you experts can recommend a command-line tool for this, something invoked from the command line, not an editor. |
|
| Floor2 redtek | Posted 2006-10-13 12:24 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
Why does the term CPL sound so familiar?
CPL — circular polarizing lens, haha... It seems there isn't any direct internal command with that kind of function :) |
|
| Floor3 mrhjzhang | Posted 2006-10-14 00:25 |
| 初级用户 Posts 39 Credits 100 | |
|
The built-in findstr in XP can delete lines containing a specific string.
The main problem is that the following functions don't work well when combined with echo. I just want to achieve these few functions: 1. Delete a specific string without deleting the line containing that string. 2. Replace a specific string. 3. Insert a line after the line containing a specific string, and write specific content into it. The text handled by echo is very irregular, and GNU sed is too hard to use. Experts, please a |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |