ãã§ã«Qiitaã«ãããã¤ãè¨äºãããã 1ãBashã§ã®å種ã®æ¬å¼§ã¯ããããæå³ãããã èªåã§ãç¥ããªãã£ãBashã®æ¬å¼§ããã£ãã®ã§ãæ¹ãã¦ã¾ã¨ãã¦ã¿ãã ãªããBashã®è©±ã§ã¯ããããBourne shellï¼/bin/shï¼ã¨ãã¦ãåããµã³ãã«ã³ã¼ã㯠sh ã³ã¼ãã¨ãã¦ããã bracket [ ] shããããä¼çµ±çãªã³ãã³ãã§ãtest ã¨ç価ãå¼ã®çµæãã0ãçã1ãå½ã®çå½å¤ã§è¿ãã if ã¨çµã¿åããã¦ç¨ãããã¨ãå¤ãã ãããã·ã§ã«ã§ã¯[ã¯ã³ãã³ããªã®ã§ããã2 [ã¨] ã®åå¾ã«ã¯ã¹ãã¼ã¹ãå¿
è¦ã§ãå¾ç¶ã®ã³ãã³ããããå ´åã¯;ã§çµããããªããã°ãªããªãããªããªãåè¿°ã®ã¨ãã [ã¯ã³ãã³ãã§ã[ ãã ] ã¾ã§ãä¸é£ã®ã³ãã³ãã¨å¼æ°ã®çµã¿åããã ããã ãï¼]ã¯å¿
é ãªå¼æ°ã¨ããä½ç½®ä»ãï¼
{{#tags}}- {{label}}
{{/tags}}