ex71a.sh

来自「Shall高级编程」· Shell 代码 · 共 24 行

SH
24
字号
#!/bin/bash# Same as previous example, but...#  The - option to a here document <<-#+ suppresses leading tabs in the body of the document,#+ but *not* spaces.cat &lt;&lt;-ENDOFMESSAGE	This is line 1 of the message.	This is line 2 of the message.	This is line 3 of the message.	This is line 4 of the message.	This is the last line of the message.ENDOFMESSAGE# The output of the script will be flush left.# Leading tab in each line will not show.# Above 5 lines of "message" prefaced by a tab, not spaces.# Spaces not affected by   <<-  .# Note that this option has no effect on *embedded* tabs.exit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?