Linux
文章平均质量分 79
stu202060510
Seest thou a man diligent in his calling, he shall stand before kings, he shall not stand before mean men.
展开
-
Linux文件中的乱码问题(2010-07-30)
fannge@fannge:~/my_sh> localeLANG=zh_CN.UTF-8LC_CTYPE="zh_CN.UTF-8"LC_NUMERIC="zh_CN.UTF-8"LC_TIME="zh_CN.UTF-8"LC_COLLATE="zh_CN.UTF-8"LC_MONETARY="zh_CN.UTF-8"LC_MESSAGES="zh_CN.UTF-8"LC_PAPER="zh_CN.UTF-8"LC_NAME="zh_CN.UTF-8"LC_ADDRESS="zh_CN.UTF-8"LC_原创 2010-07-30 20:38:00 · 303 阅读 · 0 评论 -
sed 命令
<br />################################################################<br /> #[0]: 基础 #<br /> ################################################################<br转载 2011-03-19 11:58:00 · 355 阅读 · 0 评论 -
sed 替换
<br />让我们看一下 sed 最有用的命令之一,替换命令。使用该命令,可以将特定字符串或匹配的规则表达式用另一个字符串替换。下面是该命令最基本用法的示例: <br /><br /><br />Linux代码 $ sed -e 's/foo/bar/' myfile.txt $ sed -e 's/foo/bar/' myfile.txt <br /><br /> 上面的命令将 myfile.txt 中每行第一次出现的 'foo'(如果有的话)用字符串 'bar' 替换,然后将该文件内容输出转载 2011-03-19 12:32:00 · 1843 阅读 · 0 评论