zshã¯ã·ã§ã«ã§ãããã·ã§ã«ã¯ãã¡ãããã¼ãã¼ãå ¥åãããã³ãã³ãè¡ã解éããå¿ è¦ãªã³ãã³ããå¿ è¦ãªå¼æ°ã¨ã¨ãã«èµ·åãããã¨ã主ãªä»äºã¨ããã½ããã¦ã§ã¢ã§ãããåãªãã·ã§ã«ãªã®ã ããzshã«ã¯ä»ãå§å°ããæ¯é¡ãªãæ©è½ãããããã®ä¸ç«¯ãå°è±¡ã¥ããä¸ã¤ã®ä¾ã«ãzshã§å®è£ ããããããªã¹ãããï¼å³1â ï¼â ã ãã¡ããããã¯ããéã³æ©è½ã®ä¾ã§å®éã®æ¥å¸¸ä½æ¥ãããã§é²ããããã§ã¯ãªãããæ½å¨çã«åãã¦ããæ©è½ãã©ãã»ã©ã®ãã®ããåãã好ä¾ã§ããã zshã¯ãshï¼Bourne Shellï¼ããã¼ã¹ã¨ããkshãcshï¼tcshâ ï¼â ãbashã®åªããæ©è½ãã¢ã¤ãã¢ã¨ãã¦åãè¾¼ã¿ããªããã¤ä½æ¥å¹çãé«ããç¬èªã®æ©è½ãç»è¼ããã¾ãã«è³é«ã®ã·ã§ã«ã§ãããããããªããè¶ é«æ©è½ã»å¤æ©è½ã§ãããããã«å ¨å®¹ãæ´ãã®ãé£ãããä»å±ã®è±æããã¥ã¢ã«ã¯ãã£ãããã¦ãããã®ã®ãç°¡æ½ãªä»æ§è¨è¿°ãããã¦ããã®ã¿ãªã®ã§å ·ä½çãª
ç·ã®bashã¦ã¼ã¶ã¼ãããã©è²ã®ç´³å£«ãã¨æ¼¢ã®zshã«ä¹ãæããã¨ã㫠アッーã£ã¦ãªãã³ãäºãå ã»ã©ããã¤ãæãã¤ããã®ã§å ±æããã !!ã¨ãã®å±¥æ´å®è¡ã¯rã³ãã³ã㧠zshã«ã¯ãr ã¨ããã·ã§ã«çµã¿è¾¼ã¿ã³ãã³ãããã£ã¦ å±¥æ´ããã®å®è¡ãç°¡åã«è¡ããã ãã¨ãã°ãä¸çªæå¾ã«å®è¡ããviã³ãã³ããå®è¡ãããã¨ããªã©ã ã bashãªããã 㨠!vi ã§åºæ¥ãã®ã ãã rã³ãã³ãã ã£ãã % r vi ã§ããã ç´åã«å®è¡ããã³ãã³ããåã³å®è¡ãããã¨ãã bashãªããã 㨠!! ã¨ããããæ¹ã«ãªããã rã³ãã³ãã§ã¯ã % r ã¨ããã ãã§ããã ã¾ããæååãç½®ãæãã¦ããã®å±¥æ´å®è¡ã¯ã©ãã ããã ãã¨ãã°æ¬¡ã®ãããªbashã®ä¾ã ã $ vi .zshrc $ !vi:s/zsh/bash/ ããã¯ãæå¾ã«å®è¡ããviã³ãã³ãã®å¼æ°æååã ":s/zsh/bash/" ã«ããzshã¨ããæ
ããããä¸çã®ã©ããã«æ¯åãã¨ã«"HHMM.jpg"ã®å½¢å¼ã§1440æã®ç»åãã¡ã¤ã«ãå ¬éããã¦ãããããããä¸æ°ã«åå¾ããããªãã¾ãããï¼ ãããªã¨ãã«ã¯ã¯ã³ã©ã¤ãã¼ã§ãµã¯ã£ã¨åã£ã¦ãã¾ãã¾ãããã $ for i in $(echo 0{0..9}{0..5}{0..9} {10..23}{0..5}{0..9}); do wget -w5 --random-wait http://ã©ããã®URL/$i.jpg; doneãµã¼ãã«åªãããwaitãããã¦ã¾ããä¸ã®äººã«æããããã©ããã¯ä¸ã®äººæ¬¡ç¬¬ï¼ zshã使ãã¨ãã¼ãããã£ã³ã°ãã¦ãã¬ã¼ã¹å±éã§ããã®ã§ã¨ã£ã¦ã便å©ã§ãï¼ $ zsh % wget -w5 --random-wait http://ã©ããã®URL/{00..23}{00..59}.jpg ã¨ã¯è¨ããã©ããåå¾ã«æéãããã£ã¦ãã¾ããªãcronã使ã£ã¦ã¿ãã®ãã¢ãªããï¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}