回答編集履歴

2

訂正

2018/03/04 01:36

投稿

nullpon
nullpon

スコア5737

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # 1枚目
6
6
 
7
- cat <結合証明書>|sed -n '/BEGIN/,$p'|openssl x509 -text -noout
7
+ cat <結合証明書>|openssl x509 -text -noout
8
8
 
9
9
  # 2枚目
10
10
 

1

訂正

2018/03/04 01:36

投稿

nullpon
nullpon

スコア5737

test CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ```bash
4
4
 
5
+ # 1枚目
6
+
7
+ cat <結合証明書>|sed -n '/BEGIN/,$p'|openssl x509 -text -noout
8
+
9
+ # 2枚目
10
+
5
- cat <結合証明書>|sed -n -e'1d' -e'/BEGIN/,$p'|openssl x509 -text -noout
11
+ cat <結合証明書>|sed -n '1d;/BEGIN/,$p'|openssl x509 -text -noout
6
12
 
7
13
  ```