回答編集履歴
1
1
test
CHANGED
@@ -11,3 +11,15 @@
|
|
11
11
|
grep 'MAIL' hoge.txt | sed 's/MAIL: //' >mail.txt
|
12
12
|
|
13
13
|
```
|
14
|
+
|
15
|
+
--- 追記 ---
|
16
|
+
|
17
|
+
仕様が違ったようなので
|
18
|
+
|
19
|
+
```
|
20
|
+
|
21
|
+
awk '/ID: /{id=$0} /NAME: /{name=$0} /MAIL: / {print id name $2}' hoge.txt
|
22
|
+
|
23
|
+
grep -e 'ID' -e 'NAME' -e 'MAIL' hoge.txt | split -l 3
|
24
|
+
|
25
|
+
```
|