回答編集履歴

3

3

2021/06/28 21:06

投稿

takasima20
takasima20

スコア7464

test CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  ```bash
4
4
 
5
- a=`awk -F':' '{print $1}' hoge.txt` >x1.txt
5
+ awk -F':' '{print $1}' hoge.txt >x1.txt
6
6
 
7
- b=`awk -F'[[]]' '{print $2}' hoge.txt` >x2.txt
7
+ awk -F'[[]]' '{print $2}' hoge.txt >x2.txt
8
8
 
9
9
  paste x1.txt x2.txt >fuga.txt
10
10
 

2

2

2021/06/28 21:06

投稿

takasima20
takasima20

スコア7464

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 >hoge.txt
9
+ paste x1.txt x2.txt >fuga.txt
10
10
 
11
11
  rm x1.txt x2.txt
12
12
 

1

1

2021/06/28 21:04

投稿

takasima20
takasima20

スコア7464

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
- echo "$a $b"
11
+ rm x1.txt x2.txt
12
+
13
+ ```