cat > 命令也可以创建文档

今天看《Linux/Unix系统编程手册》,发现用cat > 命令也可以直接创建文本文档:

cat > testcatcreate.txt
test
test

[2]+ Stopped cat > testcatcreate.txt

[root@localhost others]# cat testcatcreate.txt
test
test
[root@localhost others]#

原文地址:https://www.cnblogs.com/ph829/p/5840197.html