Linuxã®ã·ã§ã«ã¹ã¯ãªããå¤æ°ã®è¨å·ãããã
ç°¡åãªè¡¨è¨ã ã¨è²ã
ãªæ¸ç±ã«è¼ã£ã¦ããã®ã ãã
å
¨é¨ã網ç¾
ããã¦ããããã§ã¯ãªãã®ã§ã
ãã¾ã使ç¨ããªã表è¨ã«åºããããããããããããªãã
ãããã$(ãã©ã¼)ã:(ã³ãã³)ã=(ã¤ã³ã¼ã«)ãªã©ã®è¨å·ãæ··ãã£ã表è¨ã¯
ãããã¥ããã®ã§ãã¡ãã£ã¨æ´çãã¦ã¿ãã
è¡¨è¨ | æå³ |
$NAME | å¤æ°NAMEã表ãã |
$1, $2, â¦, $9 | åå¼æ°ã表ããé ã«1çªç®ã2çªç®ãâ¦ã9çªç®ãæå³ããã |
${10}, ${11}, ⦠| 10çªç®ã11çªç®ã⦠ã®å¼æ°ãæå³ããã |
$0 | å®è¡ãããã·ã§ã«ã¹ã¯ãªããã®ãã¡ã¤ã«åã表ãã |
$# | å¼æ°ã®æ°ã表ãã |
$@ | å¼æ°ãã¹ãã¼ã¹åºåãã§è¡¨ãã |
$* | å¼æ°ãç°å¢å¤æ°IFSã§åºåã£ã¦è¡¨ããIFSã空ã®å ´åãã¹ãã¼ã¹åºåãã¨ãªãã |
$? | ç´åã«å®è¡ãããå¦çã®çµäºã³ã¼ãå¤ã表ãã |
$$ | ç¾å¨å®è¡ä¸ã®ã·ã§ã«ã®ããã»ã¹IDå¤ã表ãã |
$! | ç´åã«å®è¡ãããå¦çã®ããã»ã¹IDã表ãã |
${NAME:-VALUE} | å¤æ°NAMEã空ã®å ´åãå¤VALUEãè¨å®ãããã |
${NAME:=VALUE} | ã${NAME:-VALUE}ãã¨åãã |
${NAME:+VALUE} | å¤æ°NAMEã空ã§ãªããã°ãå¤VALUEãè¨å®ãããã |
${NAME:?VALUE} | å¤æ°NAMEã空ã®å ´åãå¤VALUEãæ¨æºã¨ã©ã¼ã«åºåããã¹ã¯ãªããã®å®è¡ãçµäºããã |
${NAME:START} | å¤æ°NAMEã®STARTçªç®ä»¥éã®å¤ã表ãã |
${NAME:START:LENGTH} | å¤æ°NAMEã®STARTçªç®ããLENGTHæååã®å¤ã表ãã |
ãããªã«ã³ã¸ãããã