#! /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刪除。