Linux(shellã³ãã³ã) ãã¡ã¤ã«æ¤ç´¢ dir/ é ä¸ã®.py ã¾ã㯠.ipynb ãã¡ã¤ã«ã§ hogehoge ãå«ããã®ãæ¤ç´¢ããã grep -r --include='*.py' --include='*.ipynb' "hogehoge" dir/ dir/ é ä¸ã®ç¹å®ã®æååãå«ããã¡ã¤ã«ãä¸æ¬ã§ç½®æããã ä¾ãã°ã calender ã®ã¿ã¤ããä¸æ¬ã§ä¿®æ£ãããå ´å find dir/* \( -name "*.py" -o -name "*.ipynb" \) | xargs sed -e 's/calender/calendar/g' -i mac OS ã®å ´å, POSIX sed ãæ¨æºã§å ¥ã£ã¦ããã®ã§ä¸æ¸ããã¦ãã¾ã£ã¦ããå®è¡ããã¨ãã brew install gnu-sed --with-default-names git è¤æ°ã«åãããã³ããããã¾ã¨ã
{{#tags}}- {{label}}
{{/tags}}