- 博客(3)
- 收藏
- 关注
原创 linux sed命令
sed替基本命令: s ed -i 's/被替换的内容/要替换成的内容/' file s ed 's/被替换的内容/要替换成的内容/' file > newfile 当sed替换时,如果变量中含有斜杠。应该把命令中的“/”改成使用“:” var=xxx/xxx/xxx e.g. s ed 's:被替换的内容:$var:' file &g...
2012-03-31 11:19:12 73
注册linux服务
注册linux服务模板 #! /bin/sh # chkconfig: 2345 85 15 ### BEGIN INIT INFO # Provides: XXXX # Required-Start: $remote_fs $network # Required-Stop: $remote_fs $network # Default-Start: ...
2012-03-31 11:12:04 88
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人