Linux 多行注释

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_28061489/article/details/82391800
#! /bin/sh

:<<BLOCK
  hello world shell
  author:hhc
BLOCK
echo "hello"

一个here document就是一个带有特殊目的的代码段,它使用I/O重定向的形式将一个命令序列传递到一个交互程序或者命令中,比如ftp、cat或ex文本编辑器,将BLOCK之间的代码重定向到一个不存在的命令,从而间接地实现了多行注释

猜你喜欢

转载自blog.csdn.net/qq_28061489/article/details/82391800
今日推荐