ã¾ããã ããã«ã¡ãï¼å¤ä¼ã¿ãæ®ãå ãã¨ãªããã¯ãã¯æ¯ãã¦ãã¾ããAbsoluteã§ãã ä»æ¥ã¯Macã§sedã³ãã³ããå©ãã¨è²ã ã¨ã©ã¼ãã§ã¦å°ã£ã¦ãã¾ã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã ã³ãã³ãã«ãã£ã¦ãããªã¨ã©ã¼ã¨ããåºã¾ã sed -e '1i\-----START-----' test_sed.txt sed: 1: "1i\-----START----- ": extra characters after \ at the end of i command 解決çã¨ãã¦ã¯ãæ¨æºã®sedã使ãã®ã§ã¯ãªããå¥éãgnu-sedããã¤ã³ã¹ãã¼ã«ãããã¨ã§è§£æ±ºã§ããããã§ãã éçºç°å¢ OS MacOSX ã·ã§ã« zsh gnu-sedã®ã¤ã³ã¹ãã¼ã« gnu-sedã¯homebrewã§ç°¡åã«å ¥ãããã¨ãã§ãã¾ãã brew install gnu-sed ããã§gsedã³ãã³ãã使ããããã«ãªãã¾
{{#tags}}- {{label}}
{{/tags}}