sed常见用法

Peter_Yi / 2023-09-03 / 原文

sed -ri '/^(user|group)/s#apache#nginx#g' /etc/php-fpm.d/www.conf  #匹配以user和group开头的行,用nginx替换apache