What is EOF!! in the bash script?

后端 未结 5 1627
萌比男神i
萌比男神i 2021-02-13 12:08

There is a command I don\'t understand:

custom_command << EOF!!

I want to ask what EOF!! is in the bash script. I did find EOF with googl

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-13 13:07

    It's probably just a weird heredoc.

    Example:

    cat << EOF!!
    blabla
    EOF!!
    

    Note: this only works in script files. The command line parser interprets !!.

提交回复
热议问题