LinuxãUNIXã使ãä¸ã§ãããç¨åº¦ä½¿ããã¨é常ã«ä¾¿å©ãªç½®æã³ãã³ããããã®sedã³ãã³ãã ã ä»åã¯ããã®sedã³ãã³ãã§è¦ãã¦ãããã使ãæ¹ã«ã¤ãã¦ç´¹ä»ããã ãªããä»åã®ç½®æã»ç·¨éã®ä¾ã¨ãã¦ã以ä¸ã®ãã¡ã¤ã«ãç¨ãã¦èª¬æããã [root@test-centos7 work]# cat /root/sed_test.conf # line 1 line1=enable # line 2 line2=disable # line 3 line3=enable # line 4 line4=enable 1.åºæ¬çãªä½¿ãæ¹ sedã³ãã³ãã®åºæ¬çãªä½¿ãæ¹ã¨ãã¦ã¯ã以ä¸ã®ããã«ã³ãã³ããå®è¡ãããã¨ã§ãã¡ã¤ã«ã»æ¨æºåºåã®å 容ã§æååã®ç½®æãè¡ãäºã ã ãªããæ¡ä»¶ã®æå¾ã«ãgããä»ããªãã¨ã"æåã«ããããããç®æã®ã¿"ç½®æããã®ã§æ³¨æã ãã¡ã¤ã«ã®å 容ãç½®æããå ´å sed 's/ç½®æå
{{#tags}}- {{label}}
{{/tags}}