存档

文章标签 ‘shell’

sed1line_zh-CN

2010年2月23日 没有评论
?Download shell.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
-------------------------------------------------------------------------
SED单行脚本快速参考(Unix 流编辑器)                       2005年12月29日
 
英文标题:USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)
原标题:HANDY ONE-LINERS FOR SED (Unix stream editor)
 
整理:Eric Pement  - 电邮:pemente[at]northpark[dot]edu         版本5.5
译者:Joe Hong     - 电邮:hq00e[at]126[dot]com
 
在以下地址可找到本文档的最新(英文)版本:
   <a href="http://sed.sourceforge.net/sed1line.txt">http://sed.sourceforge.net/sed1line.txt</a> 
   <a href="http://www.pement.org/sed/sed1line.txt">http://www.pement.org/sed/sed1line.txt</a> 
 
其他语言版本:
  中文          - <a href="http://sed.sourceforge.net/sed1line_zh-CN.html">http://sed.sourceforge.net/sed1line_zh-CN.html</a> 
  捷克语        - <a href="http://sed.sourceforge.net/sed1line_cz.html">http://sed.sourceforge.net/sed1line_cz.html</a> 
  荷语          - <a href="http://sed.sourceforge.net/sed1line_nl.html">http://sed.sourceforge.net/sed1line_nl.html</a> 
  法语          - <a href="http://sed.sourceforge.net/sed1line_fr.html">http://sed.sourceforge.net/sed1line_fr.html</a> 
  德语          - <a href="http://sed.sourceforge.net/sed1line_de.html">http://sed.sourceforge.net/sed1line_de.html</a> 
<!--
  意大利语      - <a href="http://sed.sourceforge.net/sed1line_it.html">http://sed.sourceforge.net/sed1line_it.html
--> 
  葡语          - <a href="http://sed.sourceforge.net/sed1line_pt-BR.html">http://sed.sourceforge.net/sed1line_pt-BR.html</a> 
<!--
  西班牙语      - <a href="http://sed.sourceforge.net/sed1line_es.html">http://sed.sourceforge.net/sed1line_es.html
--> 
  <a href="http://blog.thematice.com/html/y2010/02/23/1035/sed1line_zh-cn.html#more-1035" class="more-link">阅读全文...</a>

鞋衫各式名品专卖

收藏与分享

Bash Shell 快捷键的学习使用

2009年12月27日 没有评论

这篇 Bash Shell Shortcuts 的快捷键总结的非常好。值得学习。下面内容大多数是拷贝粘贴与总结.

CTRL 键相关的快捷键:
Ctrl + a – Jump to the start of the line
Ctrl + b – Move back a char
Ctrl + c – Terminate the command //用的最多了吧?
Ctrl + d – Delete from under the cursor
Ctrl + e – Jump to the end of the line
Ctrl + f – Move forward a char
Ctrl + k – Delete to EOL
阅读全文…

收藏与分享

理解 Linux 的处理器负载均值(翻译)

2009年12月18日 没有评论

原文链接: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages

你可能对于 Linux 的负载均值(load averages)已有了充分的了解。负载均值在 uptime 或者 top 命令中可以看到,它们可能会显示成这个样子:

阅读全文…

简单生活。简单运动

收藏与分享

理解Load Average做好压力测试

2009年12月18日 没有评论

最近刚接手的产品问题很多,主要是集中在产品设计和性能上,另外代码的可维护性也很差,这两周处理故障和问题的时间比较多,博客更新的也少了,下面的这篇文章是解释开发小组成员介绍并发编程的一些基本原理而收集到的一篇比较好的文章,作者以浅显易懂的方式介绍了比较复杂的概念。我觉得如果我们能够把一个复杂、抽象的概念如果能够通过生活中常见的场景来加以说明和描述出来,那么我们就真正理解了这个概念。

阅读全文…

收藏与分享

touch –help

2009年12月15日 没有评论
?Download shell.sh
1
2
3
4
5
touch --help
Usage: touch [OPTION]... FILE...
Update the access and modification times of each FILE to the current time.
 
Mandatory arguments to long options are mandatory for short options too.

阅读全文…

收藏与分享
分类: 未分类 标签: , , ,

linux sort 命令详解

2009年12月12日 没有评论

   sort命令的功能是对文件中的各行进行排序。sort命令有许多非常实用的选项,这些选项最初是用来对数据库格式的文件内容进行各种排序操作的。实际上,sort命令可以被认为是一个非常强大的数据管理工具,用来管理内容类似数据库记录的文件。
  Sort命令将逐行对文件中的内容进行排序,如果两行的首字符相同,该命令将继续比较这两行的下一字符,如果还相同,将继续进行比较。
  阅读全文…

收藏与分享

LINUX的du命令详解

2009年11月1日 没有评论

命令用途
du(disk usage)命令可以计算文件或目录所占的磁盘空间。没有指定任何选项时,它会测量当前工作目录与其所有子目录,分别显示各个目录所占的快数,最后才显示工作目录所占总快数。
命令格式
阅读全文…

收藏与分享

输出man里面的内容乱码解决方案

2009年10月19日 没有评论

输出man里面的内容乱码解决方案
最近先把man 好好看看.我想用我的G1在公交车路上看.突然发现一个问题.
我直接man bash > man.txt后.拿过来的文件中间有乱码.

后来发现可以用col -b来过滤.执行后果然很好用..特意分享一下..

?Download shell.sh
1
man bash | col -b > man.txt

阅读全文…

收藏与分享
分类: linux shell, Linux tools 标签: , , ,

管理终端

2009年10月19日 没有评论

通过bash shell终端显示的数据通常是通过ASCII编码的数据。用户也可以提交非ASCII编码的数据在终端中显示,终端程序会尽力执行。有时,终端会出现乱码,有时候会导致终端长时间的不响应。这时候,我们需要在终端中执行reset命令。执行reset命令的时候,我们可能看不到我们的输入字符。命令输入完成后,按回车键执行,终端就可以恢复正常操作。
Linux终端通过使用Ctrl键来发送特殊的信号。常用的组合键包括:
1、Ctrl+C——终止当前在bash中运行的进程,返回bash提示。
阅读全文…

收藏与分享
分类: linux shell, Linux tools 标签: , ,

Unix/Linux shell程序设计-<控制结构>-case语句

2009年9月26日 没有评论

case语句 :它能够把变量的内容与多个模板进行匹配,再根据成功匹配的模板去决定应该执行哪部分代码。
使用格式:
case 匹配母板 in
模板1 [ | 模板2 ] … ) 语句组 ;;
模板3 [ | 模板4 ] … ) 语句组 ;;
esac
阅读全文…

收藏与分享