Shell 中的括号

shell 编程中,我们经常会用到括号,包括小括号(())、中括号([])还有大括号({})。今天我们来试试,它们在 shell 编程中的应用和注意事项。

一、小括号

小括号的说明和使用,请看下图:

《Shell 中的括号》 Shell 中的小括号

二、中括号

中括号的说明和使用,请看下图:

《Shell 中的括号》 Shell 中的中括号

三、大括号

大括号的说明和使用,请看下图:

《Shell 中的括号》 Shell 中的大括号
《Shell 中的括号》 Shell 中的大括号
《Shell 中的括号》 Shell 中的大括号
《Shell 中的括号》 Shell 中的括号使用

完整的图:

《Shell 中的括号》 Shell 中的括号

    原文作者:Uchen
    原文地址: https://www.jianshu.com/p/7bb7297dcc11
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞