â bash ã®å±éºãªç®è¡å¼ _ 使ã£ã¦ã人ããã¡ã°ãå¤ãã ããããã¿ã¤ãã«ã§ã¯ bash ã¨ãã¦ããã©ãããã§åãä¸ãããã¨ã¯ zsh ããã³ ksh ä¸æ(æ¬å®¶ kshãpdkshãmksh)ã«ã該å½ãããashãdash ãªã©ã§ã¯è©²å½ããªãã _ 以ä¸ã®ã·ã§ã«ã¹ã¯ãªããã«ã¯èå¼±æ§ãããããããã ãããã #!/bin/bash # "åç®,å価,åæ°" ã®å½¢å¼ã® CSV ãèªãã§ã"åç®,åè¨éé¡" ã®å½¢å¼ã§åºåãã csv="foo.csv" while IFS=, read item price num; do echo "$item,$((price*num))" done < "$csv" ãããç´°å·¥ããã CSV ãã¡ã¤ã«ãé£ããããã¨ã§ãä»»æã³ã¼ãã®å®è¡ãã§ãã¦ãã¾ããæ°ããèå¼±æ§ã®ä¸ã§ãã¨ãã«ã¤ãããã¤ã ãã©ããç©´ãªã®ãã¨ããã¨ãã¿ã¤ãã«ã«ãããã¨ããç®è¡å¼ãªã®ã ããã
{{#tags}}- {{label}}
{{/tags}}