回答編集履歴
3
3
test
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
```bash
|
4
4
|
|
5
|
-
a
|
5
|
+
awk -F':' '{print $1}' hoge.txt >x1.txt
|
6
6
|
|
7
|
-
|
7
|
+
awk -F'[[]]' '{print $2}' hoge.txt >x2.txt
|
8
8
|
|
9
9
|
paste x1.txt x2.txt >fuga.txt
|
10
10
|
|
2
2
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
b=`awk -F'[[]]' '{print $2}' hoge.txt` >x2.txt
|
8
8
|
|
9
|
-
paste x1.txt x2.txt >
|
9
|
+
paste x1.txt x2.txt >fuga.txt
|
10
10
|
|
11
11
|
rm x1.txt x2.txt
|
12
12
|
|
1
1
test
CHANGED
@@ -2,8 +2,12 @@
|
|
2
2
|
|
3
3
|
```bash
|
4
4
|
|
5
|
-
a=`awk -F':' '{print $1}' hoge.txt`
|
5
|
+
a=`awk -F':' '{print $1}' hoge.txt` >x1.txt
|
6
6
|
|
7
|
-
b=`awk -F'[[]]' '{print $2}' hoge.txt`
|
7
|
+
b=`awk -F'[[]]' '{print $2}' hoge.txt` >x2.txt
|
8
8
|
|
9
|
+
paste x1.txt x2.txt >hoge.txt
|
10
|
+
|
9
|
-
|
11
|
+
rm x1.txt x2.txt
|
12
|
+
|
13
|
+
```
|