EOF: END OF FILE
>>输入追加
> 输入重定向
< 输出重定向
<< 输出追加
[root@k8s-master test2]# ll
总用量 0
[root@k8s-master test2]# cat <<EOF >test1.txt
> A
> B
> CDEFG
> EOF
[root@k8s-master test2]# cat test1.txt
A
B
CDEFG
[root@k8s-master test2]# cat <<EOF >>test1.txt
> defghi
> EOF
[root@k8s-master test2]# cat test1.txt
A
B
CDEFG
defghi
[root@k8s-master test2]# cat <<EOF >test1.txt
> helloworld
> EOF
[root@k8s-master test2]# cat test1.txt
helloworld
[root@k8s-master test2]# cat >test2.txt <<EOF
> HELLOWORLD
> THIS IS A TEST
> EOF TEST!
> EOF
[root@k8s-master test2]# cat test2.txt
HELLOWORLD
THIS IS A TEST
EOF TEST!
[root@k8s-master test2]#