bash
å¤æ°ã¯å±éãã¤ã¤ãShellã®ã¡ã¿æåãåé¿ãããã£ããããã«ã¯ãªã¼ãã¼ã·ã§ã³ã§å²ãã°ã¤ã±ãããã¯ãªã¼ãã£ã³ã°ã¨å¼ã¶ãããã â»zshã§ç¢ºèªæ¸ãbashããã£ã¨ä¸ç·ã
$(date +"%Y-%m-%d") ãã¤ãã°ã°ã£ã¦ããæ°ãããã®ã§ã¡ã¢ è¿½è¨ $() ã®æ¸ãæ¹ãSolarisã§ã¯ä½¿ããªãã®ã§å°ã移æ¤æ§ä¸ãããããã(FreeBSDã¯ãï½ï¼ `date +"%Y-%m-%d"` ã®ã»ãã移æ¤æ§ã¯é«ã¾ãããããã$()ã®æ¹ãè¦ãããâ¦
ããããå¼æ°ã§å¦çãæ¯ãåããBashã¹ã¯ãªããã Linuxã¨ããæ¯ãããä»äºãªãBashã¹ã¯ãªãã使ããã¨åãä»äºãæããã·ã§ã«ãLinuxã¯ãã¼ã«ãæãã¾ãã£ã¦ããã®ã§ããããã®ãã¼ã«ã¨bashãçµã¿åãããã°åãå¼·åãªäºãã§ããã 1,2åã®ãªãã¬ã¼ã·ã§ã³ãªâ¦
bashã¯ã³ã©ã¤ãã¼ã«ã¼ããããã ã¯ã³ã©ã¤ãã¼ã§ã«ã¼ããæ¸ãã¦ãããã»ã¹ãç£è¦ããã¨ãããããã®ããããããã¨æ¸ããã¨è²ã ã¨æã ããç¯å²ã§ã«ã¼ãããã¨ã for i in $(seq 1 10) ; do dig -t TXT domain-hoge-${i}.com ; done $(seq 1 10)ã§1 2 3 4 5 â¦