1. sed s/mysql/MySQL/g test.conf >test2.conf
# replace all mysql to MySQL
2. sed s/mysql/MySQL/ test.conf >test2.conf
# replace first mysql to MySQL
3. sed s/mysql/MySQL/2 test.conf >test2.conf
# replace the second found mysql only to MySQL.
没有评论:
发表评论