回答編集履歴
2
追記
answer
CHANGED
@@ -11,4 +11,30 @@
|
|
11
11
|
usr~ %
|
12
12
|
|
13
13
|
```
|
14
|
-
[シェルスクリプト】コメントの書き方](https://www.server-memo.net/shellscript/comment.html)
|
14
|
+
[シェルスクリプト】コメントの書き方](https://www.server-memo.net/shellscript/comment.html)
|
15
|
+
|
16
|
+
「追記」
|
17
|
+
例えば・・・下記の例では'#'はコマンドの一部として解釈されるので意味がありませんが?
|
18
|
+
```sh
|
19
|
+
usr~ % cc --version | more
|
20
|
+
clang version 8.0.0 (trunk 341621)
|
21
|
+
Target: x86_64-unknown-linux-gnu
|
22
|
+
Thread model: posix
|
23
|
+
InstalledDir: /usr/local/bin
|
24
|
+
usr~ % cc --version #| more
|
25
|
+
clang version 8.0.0 (trunk 341621)
|
26
|
+
Target: x86_64-unknown-linux-gnu
|
27
|
+
Thread model: posix
|
28
|
+
InstalledDir: /usr/local/bin
|
29
|
+
usr~ % #cc --version
|
30
|
+
#cc: Command not found.
|
31
|
+
usr~ % cc --version | #more
|
32
|
+
#more: Command not found.
|
33
|
+
usr~ % cc --version
|
34
|
+
clang version 8.0.0 (trunk 341621)
|
35
|
+
Target: x86_64-unknown-linux-gnu
|
36
|
+
Thread model: posix
|
37
|
+
InstalledDir: /usr/local/bin
|
38
|
+
usr~ %
|
39
|
+
```
|
40
|
+
のようなことですか?
|
1
誤記修正
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
usr~ % sh ./tst.sh
|
5
5
|
#test
|
6
6
|
usr~ % cat tst.sh
|
7
|
-
#
|
7
|
+
#!/bin/bash
|
8
8
|
|
9
9
|
echo \#test
|
10
10
|
|