#! /bin/bash echo "测试写文件" cat>test1<<EOF 这是一个由shell创建的文件 this is a file created by shell. we want to make a good world. EOF
其中,<<EOF 表示当遇到EOF时结束输入。
cat>test1<<EOF 这间没有空格
#! /bin/bash echo "测试写文件" cat>test1<<EOF 这是一个由shell创建的文件 this is a file created by shell. we want to make a good world. EOF
其中,<<EOF 表示当遇到EOF时结束输入。
cat>test1<<EOF 这间没有空格
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。