count=0 max=5 while ((count < max)); do # (( ç®è¡å¼ )) ã¯æ¡ä»¶æã§ä½¿ããã®ã§ã count=$((count + 1)) # è¨ç®ãããã ããªãç®è¡å¼å±éã使ãã¾ã echo "$count" done ã¤ãã§ã«è¨ã㨠(( ç®è¡å¼ )) 㯠POSIX ã·ã§ã«ã§è¦å®ããã¦ãã¾ãããbashãkshãmkshãzsh ã§ã¯ä½¿ãã¾ãã dashãyash ãªã©ã®ç´ç²ãª POSIX ã·ã§ã«ã«è¿ãã·ã§ã«ã§ã¯ä½¿ãã¾ããã ãªãï¼ (( ç®è¡å¼ )) ã使ã£ã¦å¤æ°ã«å¤ãä»£å ¥ãããå¤æ´ãããã¨ãã§ãã¾ãããããã ãã®ããã«ä½¿ã£ã¦ã¯ããã¾ãããif ã while ãªã©ã®æ¡ä»¶æã¨ã¨ãã«ä½¿ããã®ã§ãã C è¨èªã使ã£ã¦ã人ãªãæ¯è¼çè¦ãããæ¸ãæ¹ã ã¨æãã¾ããã(( ç®è¡å¼ )) ã§å¤ãå¤ããã¨ããã®ã¯ã以ä¸ã®ããã«è©ä¾¡ããã¤ãã§ã«å¤ãå¤ãã¡ããã¨ãçãæ¸ã
{{#tags}}- {{label}}
{{/tags}}