回答編集履歴

1

実行例追記

2019/09/12 13:31

投稿

Y.H.
Y.H.

スコア7918

test CHANGED
@@ -1,3 +1,63 @@
1
1
  `idea.`は行末には無いですね。`idea.\`が行末です。
2
2
 
3
3
  よって`grep 'idea.\$' zen.txt` でコマンド実行してください。
4
+
5
+
6
+
7
+ ```text
8
+
9
+ $ cat zen.txt
10
+
11
+ The Zen of Python, by Tim Peters
12
+
13
+
14
+
15
+ Beautiful is better than ugly.
16
+
17
+ Explicit is better than implicit.
18
+
19
+ Simple is better than complex.
20
+
21
+ Complex is better than complicated.
22
+
23
+ Flat is better than nested.
24
+
25
+ Sparse is better than dense.
26
+
27
+ Readability counts.
28
+
29
+ Special cases aren't special enough to break the rules.
30
+
31
+ Although practicality beats purity.
32
+
33
+ Errors should never pass silently.
34
+
35
+ Unless explicitly silenced.
36
+
37
+ In the face of ambiguity, refuse the temptation to guess.
38
+
39
+ There should be one-- and preferably only one --obvious way to do it.
40
+
41
+ Although that way may not be obvious at first unless you're Dutch.
42
+
43
+ Now is better than never.
44
+
45
+ Although never is often better than *right* now.
46
+
47
+ If the implementation is hard to explain, it's a bad idea.\
48
+
49
+ If the implementation is easy to explain, it may be a good idea.\
50
+
51
+ Namespaces are one honking great idea -- let's do more of those!
52
+
53
+
54
+
55
+ $ grep 'idea.\$' zen.txt
56
+
57
+ If the implementation is hard to explain, it's a bad idea.\
58
+
59
+ If the implementation is easy to explain, it may be a good idea.\
60
+
61
+
62
+
63
+ ```