Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T_ch2_Hypo #19

Merged
merged 8 commits into from
Feb 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions ch1/[252-394]CHN.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,21 @@

蒙一手这 `#` 是个文件注释格式

<<<<<<< HEAD
【265】之后我们用 `>>` 操作符把它添在文件末尾
=======
【265】之后我们用 `>>` 运算符把它添在文件末尾
>>>>>>> e692777 (reviewed by GNAQ)

这里尽管文件名已经传给了脚本

但我们预先并不知道文件名

<<<<<<< HEAD
所以我们需要用文件名变量在这里展开
=======
需要调用记录文件名的变量(获取文件名) # REVIEW
>>>>>>> e692777 (reviewed by GNAQ)

我们可以运行这个试试

Expand Down Expand Up @@ -189,13 +197,23 @@
如我们所料,我们得到了

`x` 只在第一个文件夹里
<<<<<<< HEAD

【345】`y` 只在第二个文件夹里

还有,目前我们只看了 bash 脚本

如果你喜欢其它的脚本……

=======

【345】`y` 只在第二个文件夹里

还有,目前我们只看了 bash 脚本

如果你喜欢其它的脚本……

>>>>>>> e692777 (reviewed by GNAQ)
像 bash 对一些工作可能并不是最好的选择

它可能会很棘手。事实上你可以
Expand All @@ -204,7 +222,11 @@

【350】例如,我们在这里看一个

<<<<<<< HEAD
Python 脚本,它的开头有神秘的一行代码
=======
Python 脚本,它的开头是一个魔法行 # REVIEW
>>>>>>> e692777 (reviewed by GNAQ)

我暂且不去解释

Expand All @@ -226,8 +248,12 @@ bash 中 `$0`,`$1` 等等的东西

【360】就是一个参数 vector,我们将它倒序输出

<<<<<<< HEAD
开始时那神奇的一行叫做 shebang [*]
*这个单词源于这行以 `#!` 作为开头。`#` 是 sharp,`!` 是 bang
=======
开始时那神奇的一行叫做 shebang
>>>>>>> e692777 (reviewed by GNAQ)

Shell 通过它了解怎么运行这个程序

Expand Down
Loading