From 89974407b8f2fb0accccfde80d9a784e1e78dd15 Mon Sep 17 00:00:00 2001 From: carolinewuyan <309866211@qq.com> Date: Thu, 17 Oct 2013 10:31:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E6=A0=A1=E5=AF=B9=EF=BC=88=E7=BF=BB?= =?UTF-8?q?=E8=AF=91=E6=97=A0=E8=AF=AF=EF=BC=8C=E5=9F=BA=E6=9C=AC=E6=97=A0?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...Terminal--Seeing the unseen characters with cat!.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/translated/Linux Terminal--Seeing the unseen characters with cat!.md b/translated/Linux Terminal--Seeing the unseen characters with cat!.md index ff9f5778c0..8cc2e54b6e 100644 --- a/translated/Linux Terminal--Seeing the unseen characters with cat!.md +++ b/translated/Linux Terminal--Seeing the unseen characters with cat!.md @@ -1,12 +1,12 @@ Linux终端:用cat命令查看隐藏的字符 ================================================================================ -时常,某个程序或软件并没有语法错误,并且你检查它的相关内容也确实没有发现问题。这是因为你用普通文本编辑器软件来查看的时候,有许多字符没有显示出来,但在终端下面使用cat命令可以很容易的检测出是否存在这些字符。 +时常,某个程序或软件并没有语法错误,并且你检查它的相关内容也确实没有发现问题。这是因为你用普通文本编辑器软件来查看的时候,有许多字符没有显示出来,但在终端使用cat命令可以很容易地检测出是否存在这些字符。 -首先,我们创建一个简单的文本文件,写入一些特殊的字符。打开终端,运行命令: +首先,我们创建一个简单的文本文件,写入一些特殊字符。打开终端,运行命令: printf 'testing\012\011\011testing\014\010\012more testing\012\011\000\013\000even more testing\012\011\011\011\012' > /tmp/testing.txt -现在用不同的编辑器软件打开,显示的结果不会相同。用简单的cat打开将显示: +现在用不同的编辑器软件打开,显示的结果会不同。用简单的cat打开将显示: $ cat /tmp/testing.txt testing @@ -16,7 +16,7 @@ Linux终端:用cat命令查看隐藏的字符 even more testing -然而用nano或者vim打开,将会看到: +如果用nano或者vim打开,将会看到: testing testing^L^H @@ -63,7 +63,7 @@ via: http://linuxaria.com/pills/linux-terminal-seeing-the-unseen-characters-with 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 -译者:[runningwater](https://github.com/runningwater) 校对:[校对者ID](https://github.com/校对者ID) +译者:[runningwater](https://github.com/runningwater) 校对:[Caroline](https://github.com/carolinewuyan) [1]: [2]: