Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
billie66 committed Oct 14, 2014
1 parent d162aef commit 3583fb8
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion book/chap01.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ AIX. I have chosen to use the popular format. If, however, you prefer to use
也就是说,整个 Linux 生态系统,不只有 GNU 项目软件。在操作系统商界,好像喜欢使用单个词的名字,
比如说 DOS, Windows, MacOS, Solaris, Irix, AIX. 所以我选择用流行的命名规则。然而,
如果你喜欢用“GNU/Linux”,当你读这本书时,可以在脑子里搜索并替换“Linux”。我不介意。
{: .single}


### Further Reading

Expand Down
6 changes: 3 additions & 3 deletions book/zh/chap20.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ POSIX 标准中描述的正则表达式(其包括了大多数的命令行工
>
> 使用这个正则表达式,我们能在我们的字典文件中查找到包含五个字母,且第三个字母
是“j”,最后一个字母是“r”的所有单词。
{: .single}


### 中括号表达式和字符类

Expand Down Expand Up @@ -418,7 +418,7 @@ LANG 变量包含了语种和字符集。这个值最初由你安装 Linux 系
>
> 注意这个改动使系统为它的字符集使用 U.S. 英语(更准确地说,ASCII),所以要确认一下这
是否是你真正想要的效果。通过把这条语句添加到你的 .bashrc 文件中,你可以使这个更改永久有效。
{: .single}



### POSIX 基本的 Vs.扩展的正则表达式
Expand Down Expand Up @@ -455,7 +455,7 @@ BRE 和 ERE 之间有什么区别呢?这是关于元字符的问题。BRE 可
定义了应用程序编程接口( APIs ),shell 和一些实用程序,其将会在标准的类似于 Unix
操作系统中找到。“POSIX” 这个名字,象征着可移植的操作系统接口(为了额外的,添加末尾的 “X” ),
是由 Richard Stallman 建议的( 是的,的确是 Richard Stallman ),后来被 IEEE 采纳。
{: .single}



我们将要讨论的扩展表达式的第一个特性叫做 alternation(交替),其是一款允许从一系列表达式
Expand Down
8 changes: 4 additions & 4 deletions book/zh/chap21.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ title: 文本处理
程序叫做 dos2unix 和 unix2dos,它们能在两种格式之间转变文本文件。然而,如果你
的系统中没有安装 dos2unix 程序,也不要担心。文件从 DOS 格式转变为 Unix 格式的过程非常
简单;它只简单地涉及到删除违规的回车符。通过随后本章中讨论的一些程序,这个工作很容易完成。
{: .single}



cat 程序也包含用来修改文本的选项。最著名的两个选项是-n,其给文本行添加行号和-s,
Expand Down Expand Up @@ -542,7 +542,7 @@ uniq 程序是一个传统的 Unix 工具,经常与 sort 程序一块使用,
> _[me@linuxbox ~]$ expand distros.txt \| cut -c 23-_
>
> Coreutils 软件包也提供了 unexpand 程序,用 tab 来代替空格。
{: .single}


当操作字段的时候,有可能指定不同的字段分隔符,而不是 tab 字符。这里我们将会从/etc/passwd 文件中
Expand Down Expand Up @@ -973,7 +973,7 @@ MS-DOS 文本文件为 Unix 风格文本的问题。为了执行这个转换,
> 大量的 email 程序和 USENET 新闻读者都支持 ROT13 编码。Wikipedia 上面有一篇关于这个主题的好文章:
>
> http://en.wikipedia.org/wiki/ROT13
{: .single}


tr 也可以完成另一个技巧。使用-s 选项,tr 命令能“挤压”(删除)重复的字符实例:
Expand Down Expand Up @@ -1323,7 +1323,7 @@ s 命令的另一个功能是使用可选标志,其跟随替代字符串。一
awk 程序通常逐行处理文本文件,这点类似于 sed,awk 使用了一种方案,其与 sed 中地址
之后跟随编辑命令的概念相似。虽然关于 awk 和 perl 的内容都超出了本书所讨论的范围,
但是对于 Linux 命令行用户来说,它们都是非常好的技能。
{: .single}



我们要查看的最后一个工具是 aspell,一款交互式的拼写检查器。这个 aspell 程序是早先 ispell 程序
Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap25.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Ubuntu 会自动地添加这个 ~/bin 目录到 PATH 变量中。所以在 Ubunt
对于许多编程结构来说,这就加速了输入。停止缩进,输入 Ctrl-d。
>
> 通过把这些命令(没有开头的冒号字符)添加到你的 ~/.vimrc 文件中,这些改动会永久生效。
{: .single}


### 总结归纳
Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap27.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ shell 函数可以在脚本之间进行剪切和粘贴。
> echo “Disk Space Utilization For $HOSTNAME”
> df -h
> }
{: .single}


### 总结归纳
Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap28.md
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ shell 对 Unix 世界的所做所为,他们自然会警惕 Linux 对他们心
> GNU 工具,比如说 bash,就没有这些限制。他们通过支持标准和普遍地可用性来鼓励可移植性。你几乎可以
在所有类型的系统中安装 bash 和其它的 GNU 工具,甚至是 Windows,而没有损失。所以就
感觉可以自由的使用 bash 的所有功能。它是真正的可移植。
{: .single}



### 控制操作符:分支的另一种方法
Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap29.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Shell 允许在一个命令之前立即发生一个或多个变量赋值。这
但是当命令退出后,子 shell 和它的环境将被破坏掉,这样赋值的影响就会消失。
>
> 使用 here 字符串是解决此问题的一种方法。另一种方法将在37章中讨论。
{: .single}


### 校正输入
Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap31.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ dir_name 中包含的目录名是否真正地存在:
但这个脚本只能被其作者使用一次。这类脚本很常见,为了节省气力也应该被快速地开发出来。
所以这些脚本不需要太多的注释和防错检查。相反,如果一个脚本打算用于生产使用,也就是说,
某个重要任务或者多个客户会不断地用到它,此时这个脚本就需要非常谨慎小心地开发了。
{: .single}

### 测试

Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap34.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ for 循环使用的变量可以是任意有效的变量,但是 i 是最常用
因为当需要一个临时变量(正如循环变量)的时候,使用它们工作量比较少。这也引出了如下基于 fortran 的俏皮话:
>
> “神是真实的,除非是声明的整数。”
{: .single}


### for: C 语言格式
Expand Down
2 changes: 1 addition & 1 deletion book/zh/chap37.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ trap argument signal [signal...]
通过像这样的一行代码:
>
> [[ -d $HOME/tmp ]] \|\| mkdir $HOME/tmp
{: .single}


### 异步执行
Expand Down

0 comments on commit 3583fb8

Please sign in to comment.