0
我想自动替换Redmine
配置文件中的行。配置文件看起来是这样的:替换配置文件中的行
# MySQL (default setup).
....
production:
adapter: mysql
database: redmine
host: localhost
username: root
password:
encoding: utf8
development:
adapter: mysql
database: redmine_development
host: localhost
username: root
password:
encoding: utf8
....
我只希望像密码,数据库,生产部分后,以取代线...
我如何能做到这一点与sed
?