原帖由 "icesummit" 发表: 还是用这个吧: sed '$!N;s/\(.*\),\n)/\1\ /;D' file
原帖由 "waker" 发表: sed 'N;s/,\n)/\n)/;D' file 想法和ice的基本相同