尝试gnu sed:
sed -E "s/^(\w+\|)(john([\s_]doe)?|doe,\s*john)/\1John Doe/i" combined.txt
检查后添加-i选项进行编辑; sed -Ei …
sed -Ei