China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-13 07:02
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Ask: How to use DOS commands to edit the content of a txt (replace, modify, save) View 1,938 Replies 5
Original Poster Posted 2007-06-24 17:41 ·  中国 广东 广州 天河区 电信
新手上路
Credits 12
Posts 4
Joined 2007-06-23 22:18
19-year member
UID 92192
Gender Male
Status Offline
How can experts use DOS to modify the content in a TXT file? For example: 1. I want to modify the content in a certain TXT file and then save it. 2. I want to replace the characters in a certain line of a TXT file with the characters in a certain line of another TXT file.
Floor 2 Posted 2007-06-24 17:58 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,056
Posts 3,041
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
edit aaa.txt modify, edit, save, OK.
简单就是美
Floor 3 Posted 2007-06-24 17:59 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,056
Posts 3,041
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
notepad aaa.txt, modify, edit, save, OK.
简单就是美
Floor 4 Posted 2007-06-24 22:17 ·  中国 广东 广州 天河区 电信
新手上路
Credits 12
Posts 4
Joined 2007-06-23 22:18
19-year member
UID 92192
Gender Male
Status Offline
Can it be done completely under DOS? That is, use DOS commands to find a certain sentence in a.txt, and then use this sentence to replace a certain sentence in the b.txt file, all completed under the DOS batch processing.
Floor 5 Posted 2007-08-08 04:34 ·  中国 黑龙江 哈尔滨 电信
新手上路
Credits 6
Posts 3
Joined 2007-08-08 03:54
19-year member
UID 94819
Gender Male
Status Offline
You're welcome!
Floor 6 Posted 2007-08-08 04:35 ·  中国 黑龙江 哈尔滨 电信
新手上路
Credits 6
Posts 3
Joined 2007-08-08 03:54
19-year member
UID 94819
Gender Male
Status Offline
Thank you so much!!!
Forum Jump: