質問編集履歴
4
質問一部変更
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -11,22 +11,22 @@
|
|
|
11
11
|
|
|
12
12
|
* Connection state changed (MAX_CONCURRENT_STREAMS == xxx)!
|
|
13
13
|
} [96 bytes data]
|
|
14
|
-
* We are completely uploaded
|
|
14
|
+
* We are completely uploaded
|
|
15
15
|
< HTTP/2 200
|
|
16
16
|
< date: Wed, 24 Feb 20xx 08:xx:xx GMT
|
|
17
17
|
< content-type: application/json
|
|
18
18
|
<
|
|
19
19
|
{ [2999 bytes data]
|
|
20
20
|
|
|
21
|
-
100 24xx 0 23xx
|
|
21
|
+
100 24xx 0 23xx xxx xx 54xx xxx --:--:-- --:--:-- --:--:-- 56xx
|
|
22
|
-
100 24xx 0 23xx
|
|
22
|
+
100 24xx 0 23xx xxx xx 54xx xxx --:--:-- --:--:-- --:--:-- 56xx
|
|
23
23
|
--以下省略--
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
* Connection #0 to host xxxxx left intact
|
|
27
27
|
{
|
|
28
28
|
"token":"xxxxxxxxxxxxxxxxxxxxxxxx",
|
|
29
|
-
"user":{"
|
|
29
|
+
"user":{"id":"xxxxx","email":"xxxxxx","name":"xxxx"}
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
よろしくお願いします。
|
3
一部変更
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
--以下省略--
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
* Connection #0 to host
|
|
26
|
+
* Connection #0 to host xxxxx left intact
|
|
27
27
|
{
|
|
28
28
|
"token":"xxxxxxxxxxxxxxxxxxxxxxxx",
|
|
29
29
|
"user":{"userId":"xxxxx","email":"xxxxxx","name":"xxxx"}
|
2
一部変更
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
$ cat test.log | jq .token の様なものを使用すれば良いということは調べて分かったのですが、具体的にどのように書いたら良いかがわかりません。
|
|
8
8
|
|
|
9
9
|
```test.log
|
|
10
|
+
// test.log
|
|
10
11
|
|
|
11
12
|
* Connection state changed (MAX_CONCURRENT_STREAMS == xxx)!
|
|
12
13
|
} [96 bytes data]
|
1
内容変更
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
シェルスクリプトの
|
|
1
|
+
シェルスクリプトの勉強を初めたばかりの素人です。
|
|
2
2
|
ご質問なのですが、下記の様なtest.logファイルがあります。
|
|
3
|
-
この
|
|
3
|
+
このlogファイルに書かれている JSON の部分から、token の値が空か判定するスクリプトを作りたいと思っています。
|
|
4
4
|
|
|
5
5
|
この場合、どのような書き方をすればよろしいでしょうか。
|
|
6
6
|
|