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 03:09
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Question about displaying specific lines from a text file View 654 Replies 5
Original Poster Posted 2003-11-06 00:00 ·  中国 广东 东莞 电信
中级用户
Credits 260
Posts 47
Joined 2002-10-30 00:00
23-year member
UID 105
Gender Male
Status Offline
How can I use DOS commands to display lines X through Y of a text file on the screen?
Floor 2 Posted 2003-11-06 00:00 ·  中国 山东 淄博 联通
初级用户
Credits 158
Posts 19
Joined 2003-09-29 00:00
22-year member
UID 10488
Gender Male
Status Offline
Use a computer
Floor 3 Posted 2003-11-06 00:00 ·  中国 广东 东莞 电信
中级用户
Credits 260
Posts 47
Joined 2002-10-30 00:00
23-year member
UID 105
Gender Male
Status Offline
For example: take the readme.txt file below. If I want to display "1. If the Operating System's。。。。。 Device Manager." on the DOS screen, how should I do it?

《readme.txt》
______________________________________________________________________
For Windows ME:

1. If the Operating System's New Hardware Wizard prompts you that
"New Hardware Found" for the "PCI Ethernet Controller", you should
click "Next" until "Finish" is clicked and without specifying
location of the driver. You will see the "PCI Ethernet Controller"
in the Device Manager.

2. Then you can install or update the NDIS driver with "setup" or
"setup -s" command:
a) setup: The InstallShield will prompt you the steps to install
or upgrade the driver.

b) setup -s: The InstallShield will complete the installation or
upgrade without prompting you any instruction.

You need to reboot the system immediately after the Install shield
completes the installation/upgrade.

3. Do not click "Cancel" during New Hardware Wizard searches for the
driver.
_______________________________________________________________________
Floor 4 Posted 2003-11-15 00:00 ·  中国 广东 东莞 电信
中级用户
Credits 260
Posts 47
Joined 2002-10-30 00:00
23-year member
UID 105
Gender Male
Status Offline
Using the type readme.txt command will display the entire contents of readme.txt;
using the type readme.txt | more command will display the entire contents of readme.txt page by page, pausing when one screen is full;
how can I use DOS commands to display only line 2 through line 5 of readme.txt on the screen?
Please give me some guidance, experts! Thanks!!
Floor 5 Posted 2003-11-22 00:00 ·  中国 河南 焦作 联通
初级用户
Credits 135
Posts 7
Joined 2003-11-22 00:00
22-year member
UID 13184
Gender Male
Status Offline
Use type readme.txt/p or /w
Floor 6 Posted 2003-11-22 00:00 ·  中国 河南 安阳 联通
银牌会员
★★★
Credits 1,186
Posts 334
Joined 2003-05-30 00:00
23-year member
UID 2626
Gender Male
Status Offline
I also want to know how to display specific lines of a text file.
Can selective display be done?
Forum Jump: