范例七: 利用sed将sedtext内的每一结尾为.的换成!
sedtext的文件内容如下:
“Open Source” is a good mechanism to develop programs.
apple is my favorite food.
Football game is not use feet only.
this dress doesn’t fit me.
However, this dress is about $ 3183 dollars.
GNU is free air not free beer.
Her hair is very beauty.
I can’t finish the test.
Oh! The soup taste good.
motorcycle is cheap than car.
This window is clear.
the symbol ‘*’ is represented as start.
Oh! My god!
The gd software is a library for drafting programs.
You are the best is mean you are the no. 1.
The world is the same with “glad”.
I like dog.
google is the best tools for search keyword.
goooooogle yes!
go! go! Let’s go.
[root@www.linuxidc.com ~]cat sedtext | sed ‘s/\.$/\!/g’
“Open Source” is a good mechanism to develop programs!
apple is my favorite food!
Football game is not use feet only!
this dress doesn’t fit me!
However, this dress is about $ 3183 dollars!
GNU is free air not free beer!
Her hair is very beauty!
I can’t finish the test!
Oh! The soup taste good!
motorcycle is cheap than car!
This window is clear!
the symbol ‘*’ is represented as start!
Oh! My god!
The gd software is a library for drafting programs!
You are the best is mean you are the no. 1!
The world is the same with “glad”!
I like dog!
google is the best tools for search keyword!
goooooogle yes!
go! go! Let’s go!
Author:小邪兽houshao55@gmail.com
