- 论坛徽章:
- 0
|
sed 脚本
- s|^\([0-9]*\.\)\([\ \,\.\!\'\?\"a-zA-Z0-9]*\)\([.\!\?]\)\(.*\)$|\1\2\3\n\4\n|
复制代码
原始文件截取。
- 990. When I was young, I'd listen to the radio, waiting for my favorite songs.当我还是个小女孩的时候,我常听着收音机,等待我最喜欢的歌。
- 991. I'm certain he'll go to see the film, because he's bought a ticket.我肯定他会去看电影的,冈为他把票都买好了。
- 992. Unfortunately you'll have to pay the fine before you check those books out.在你借书之前你要先付清罚款。
- 993. Hi! You guys keep talking so loudly that I have to speak at the top my voice!哎!你们一直这样大声讲话,我都不得不扯着嗓子说话了。
- 994. We should not only know the theory but also how to apply it to practice.我们不仅要知道理论,还要知道怎样把理论应用于实践。
- 995. Combining exercise with the diet may be the most effective way to lose weight. 运动与节食结合也许是减肥最有效的途径。
- 996. The maximum weight allowance is 60 kilos per traveler, excluding hand luggage. 每个旅客托运的行李最大重量限额是60公斤,手提行李除外。
- 997. You are just putting on a little weight. I believe you'll get that off easily.你只是稍微胖了些.很快就会恢复的。
- 998. In many countries, more and more companies are replacing people with computers.在许多国家有越来越多的公司使用电子计算机来代替人。
- 999. There are mice next to the refrigerator, under the sink and inside the cupboard!冰箱边、洗碗槽下,还有橱柜里面都有老鼠!
复制代码
最终效果截取。
- 990. When I was young, I'd listen to the radio, waiting for my favorite songs.
- 当我还是个小女孩的时候,我常听着收音机,等待我最喜欢的歌。
- 991. I'm certain he'll go to see the film, because he's bought a ticket.
- 我肯定他会去看电影的,冈为他把票都买好了。
- 992. Unfortunately you'll have to pay the fine before you check those books out.
- 在你借书之前你要先付清罚款。
- 993. Hi! You guys keep talking so loudly that I have to speak at the top my voice!
- 哎!你们一直这样大声讲话,我都不得不扯着嗓子说话了。
- 994. We should not only know the theory but also how to apply it to practice.
- 我们不仅要知道理论,还要知道怎样把理论应用于实践。
- 995. Combining exercise with the diet may be the most effective way to lose weight.
- 运动与节食结合也许是减肥最有效的途径。
- 996. The maximum weight allowance is 60 kilos per traveler, excluding hand luggage.
- 每个旅客托运的行李最大重量限额是60公斤,手提行李除外。
- 997. You are just putting on a little weight. I believe you'll get that off easily.
- 你只是稍微胖了些.很快就会恢复的。
- 998. In many countries, more and more companies are replacing people with computers.
- 在许多国家有越来越多的公司使用电子计算机来代替人。
- 999. There are mice next to the refrigerator, under the sink and inside the cupboard!
- 冰箱边、洗碗槽下,还有橱柜里面都有老鼠!
复制代码
但是我的代码不能完全处理,有些行,如
- 5. My god! 天哪!
-
- 6. No way!
- 不行!
复制代码
就会变成这个样子,很奇怪的问题。。。。
原始文件link http://sh.be10.com/temp/ssss.txt |
|