1.查找test.txt文件中所有username=captain; password=cp关键字,把用户名替换为duizhang ,密码替换为passwd
# sed 's@\(username=\).*@\1duizhang@g' test.txt | sed 's@\(password=\).*@\1passwd@g'
2.