1、--------------------
fx# cat > test.txt
I have a good idea!
And you?
fx# cat test.txt
I have a good idea!
And you?
fx#
---实现要求:在?后新开一行,按ctrl+D。必须是在行首的^D才有效。
------------------------------------
2、_____________________
fx# cat > test.txt <? I have a Good Idea!
? And You?
? NO.
? GO!
fx# cat test.txt
I have a Good Idea!
And You?
NO.
fx#
---实现要求:必须在行首的,符合<<后面的字符,等于结束字符。
-----------------------------------------
3、
阅读(1395) | 评论(0) | 转发(0) |