回答編集履歴
3
test
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
```bash
|
2
|
-
{
|
3
|
-
|
2
|
+
printf ' %s\nPKM %s\n' \
|
4
|
-
(cd output; echo *.txt | sed 's/\.txt//g')
|
3
|
+
"$(cd output; echo *.txt | sed 's/\.txt//g')" \
|
5
|
-
printf 'PKM '
|
6
|
-
awk '$1=="PKM"{print $4}' output/*.txt | xargs
|
4
|
+
"$(awk '$1=="PKM"{print $4}' output/*.txt | xargs)" > result.txt
|
7
|
-
} > result.txt
|
8
5
|
```
|
2
test
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
```bash
|
2
2
|
{
|
3
3
|
printf ' '
|
4
|
-
(cd output; echo *.txt | sed 's/\.txt//g')
|
4
|
+
(cd output; echo *.txt | sed 's/\.txt//g')
|
5
5
|
printf 'PKM '
|
6
6
|
awk '$1=="PKM"{print $4}' output/*.txt | xargs
|
7
7
|
} > result.txt
|
1
test
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
```bash
|
2
|
+
{
|
2
|
-
|
3
|
+
printf ' '
|
4
|
+
(cd output; echo *.txt | sed 's/\.txt//g') | xargs
|
3
|
-
|
5
|
+
printf 'PKM '
|
4
|
-
awk
|
6
|
+
awk '$1=="PKM"{print $4}' output/*.txt | xargs
|
5
|
-
|
7
|
+
} > result.txt
|
6
8
|
```
|