手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

在线编辑器sed简单用法

[日期:2011-06-29] 来源:imcn.me  作者:小邪兽 [字体:大 中 小]

范例七: 利用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

linux
相关资讯       sed 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款