ãããã¤ã³ã¹ãã¼ã«ä»£è¡¨ã®ã©ã¤ãããã¯ããã°
(2021/9/29)æ¬è¨äºã¯ãbash,dash,zshã®readã³ãã³ãã¨è¡ãã¨ã®èªã¿è¾¼ã¿å¦ç(while read)ãã¸ç§»åããã
Mar 18, 2007 ãåç¥ã®ããã«ãPOSIX (UNIX, Linux ãªã©) ã§ã¯ bash ãªã©ã®ã·ã§ã«ã¹ã¯ãªããããã¡ã㦠å¦çãèªååã§ãã¾ããããã§ã¯ãã·ã§ã«ã¹ã¯ãªãããé¢æ°è¨èªçã«å³ä»ããã¦éãã§ã¿ã¾ããã bash ã®é¢æ°ã¯å帰çã«å¼ã³åºããã¨ãå¯è½ãªã®ã§ãä¾ãã°ãé層çãªãã£ã¬ã¯ããªæ§é 以ä¸ã® å ¨ã¦ã®ãã¡ã¤ã«ã«åãå¦çãæ½ãããã¨ãã¯ä»¥ä¸ã®ãããªç°¡åãªã¹ã¯ãªãã (for_all) ã§ã§ãã¾ãã ãã®ã¹ã¯ãªãã㧠å¤æ° FULL ãlocal ã§å®£è¨ãã¦ããã®ããã½ã§ã ãããããã¨ã«ãã£ã¦ãå¤æ°ãé¢æ°å ã ãã§æå¹ã«ãªãã®ã§ãé¢æ°ãå帰çã«å®ç¾©ãããã¨ãã§ããããã«ãªãã¾ãã for_all ã®å é¨ã§å®ç¾©ããã¦ããé¢æ° rec ã¯ä»¥ä¸ã®ããã«åä½ãã¾ãã ls ã§è¦ã¤ãã£ããã®ããã¡ã¤ã«ãªã $1 ã§æå®ãããå¦çãè¡ãã ãã£ã¬ã¯ããªãªã rec ãå帰çã«å¼ã³åº
é¢æ°åè¨èªshã®ææ³ä¸è¦§ã§ããä»ã®é¢æ°åè¨èªãããç¨åº¦ç¥ã£ã¦ãã人ããããèªãã°ãshã®åºç¤ããã¹ã¿ã¼ãã¦shãæ¸ããããã«ãªã£ã¦ãã¾ãã以ä¸ãClojureããããæ³å®ãã¦èª¬æãã¾ãã 注æï¼ããã¯åºç¤ææ³æéãã¹ã¿ã¼ããã®ãããã£ã§ããåä½ã¯æ¬ç©ã§ãããæå³ã¯ã³ã¸ãã±ã§ãã REPL shã®å¦çç³»ã¯ãPOSIXæºæ ã®Unixç³»ç°å¢ã§ããã°æ¨æºã§ç¨æããã¦ãã¾ããREPLãèµ·åããã«ã¯ãshãå®è¡ãã¾ãã sh ããã¨ãããã³ããã表示ããã¾ãã $ shã®ã»ãã«ãREPLã«è¡ç·¨éæ©è½ãä»ããbashã»zshã»tcshãªã©ãããã¾ãããããã§ã¯å²æãã¾ãã ãªããREPLã¨ãã¦ä½¿ãã»ãã«ããããããç¨æããã¹ã¯ãªãããshã§å®è¡ãããã¨ãã§ãã¾ãã sh hoge ã·ã¼ã±ã³ã¹ shã®æ±ããã¼ã¿ã¯ããã¹ã¦ãããåä½ï¼ã©ã¤ã³ã¨å¼ã³ã¾ãï¼ã®ãã¼ã¿ã並ãã ã·ã¼ã±ã³ã¹ã§ãããã¨ãã°ãseqé¢æ°ï¼L
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}