sed 如何取代sed 如何取代AuthUser=aa@gmail-com變成AuthUser=bbb@gmail-comsed 's/AuthUser=aa@gmail-com/AuthUser=bbb@gmail-com/g' yourfile.txt sed 's/AuthUser=.*@gmail-com/AuthUser=bbb@gmail-com/g' yourfile.txt