回答編集履歴
1
誤記修正
test
CHANGED
@@ -16,11 +16,11 @@
|
|
16
16
|
|
17
17
|
fi
|
18
18
|
|
19
|
-
cp -p $1 $1.bak
|
19
|
+
cp -p "$1" "$1.bak"
|
20
20
|
|
21
|
-
gzip $1.bak
|
21
|
+
gzip "$1.bak"
|
22
22
|
|
23
|
-
cat /dev/null > $1
|
23
|
+
cat /dev/null > "$1"
|
24
24
|
|
25
25
|
```
|
26
26
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
8 gzip "$1.bak"
|
58
58
|
|
59
|
-
9 cat /dev/null > $1
|
59
|
+
9 cat /dev/null > "$1"
|
60
60
|
|
61
61
|
|
62
62
|
|
@@ -86,7 +86,7 @@
|
|
86
86
|
|
87
87
|
-rw-rw-rw- 1 bar bar 38 11月 11 10:28 test.txt.bak.gz
|
88
88
|
|
89
|
-
$ zcat
|
89
|
+
$ zcat test.txt.bak.gz
|
90
90
|
|
91
91
|
test
|
92
92
|
|