中国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-16 11:17
47,813 topics / 349,903 posts / today 0 new / 48,258 members
DOS疑难解答 & 问题讨论 (解答室) » Question about using redirection operators and the pipe operator? [Help][Original]
Printable Version  1,151 / 2
Floor1 Xcat Posted 2004-02-02 00:00
初级用户 Posts 2 Credits 106
Question about using redirection operators and the pipe operator?


Floor2 梅义 Posted 2004-02-21 00:00
初级用户 Posts 7 Credits 130
Redirection means changing the system's default input/output target to one defined by the user.
For example:
TYPE A.TXT
will display the contents of A.TXT on the screen.
With redirection:
TYPE A.TXT>B.TXT
then the contents of A.TXT will be sent into B.TXT instead of the screen.
Floor3 zhri Posted 2004-02-24 00:00
高级用户 Posts 153 Credits 665
Actually, what our friend is talking about is input/output redirection.

Redirection generally uses > and >>. The former will overwrite existing contents, while the latter appends.

| this thing is the pipe.

Its function is to use the output of the program command on the left as the input of the program command on the right.

For example: dir | find ""
This is used to display each subdirectory in the current directory.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023