shell进介2-重定向
时间:2006-09-22 来源:wind1211
重定向 见解1:
[root@shenlan root]# cat >> myfile <<LYX
> hello there i am using a $ TERM terminal
> and my username is $LOGNAME
> my bash is $BASH
> bye...
> LYX
[root@shenlan root]# cat myfile
HAHA there I am using a vt100 terminal
and my username is wwf
bye....
hello there i am using a $ TERM terminal
and my username is wwf
my bash is /bin/bash
bye...
个人使用LYX 作为结束标志
> hello there i am using a $ TERM terminal
> and my username is $LOGNAME
> my bash is $BASH
> bye...
> LYX
[root@shenlan root]# cat myfile
HAHA there I am using a vt100 terminal
and my username is wwf
bye....
hello there i am using a $ TERM terminal
and my username is wwf
my bash is /bin/bash
bye...
个人使用LYX 作为结束标志
相关阅读 更多 +