Chinaunix首页 | 论坛 | 博客
  • 博客访问: 298375
  • 博文数量: 240
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 50
  • 用 户 组: 普通用户
  • 注册时间: 2016-08-04 18:14
文章分类

全部博文(240)

文章存档

2017年(8)

2014年(4)

2013年(15)

2012年(4)

2011年(14)

2010年(55)

2009年(140)

我的朋友

分类:

2009-03-10 12:58:48

可以用下面方法很简单的按格式写入文本:

 

#!/bin/sh

cat <>>/etc/hosts
Please Write your message want to attach here.
# This is just a test.

127.0.0.1 localhost
EOF

 

echo 'test' >> /etc/hosts

sed...

阅读(1033) | 评论(0) | 转发(0) |
0

上一篇:探求 LVM

下一篇:Linux下手动释放内存

给主人留下些什么吧!~~