tft每日頭條

 > 生活

 > linux下cce什麼意思

linux下cce什麼意思

生活 更新时间:2024-08-03 04:20:59

linux下cce什麼意思?EOF是END Of File的縮寫,表示自定義終止符,今天小編就來聊一聊關于linux下cce什麼意思?接下來我們就一起去研究一下吧!

linux下cce什麼意思(linux中eof是什麼)1

linux下cce什麼意思

linux中eof是什麼?

EOF是END Of File的縮寫,表示自定義終止符。

既然自定義,那麼EOF就不是固定的,可以随意設置别名。

在linux按ctrl-d就代表EOF。

EOF一般會配合cat能夠多行文本輸出。

其用法如下:

<<EOF //開始 .... EOF //結束

還可以自定義,比如自定義:

<<BBB //開始 .... BBB //結束

樣例

[root@localhost test]# cat << EOF > test.sh > 123456789 > abcdefghj > tdss32323 > EOF [root@localhost test]# cat test.sh 123456789 abcdefghj tdss32323 [root@localhost test]# cat << BBB > test.sh > dddddddddd > aaaaaaaaaa > eeead12133 > BBB [root@localhost test]# cat test.sh dddddddddd aaaaaaaaaa eeead12133 如果想追加 cat << EOF >> test.sh

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关生活资讯推荐

热门生活资讯推荐

网友关注

Copyright 2023-2024 - www.tftnews.com All Rights Reserved