20
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

整列しなさいな

Posted at
brenhilt@pc[dir]$ cat sample.txt
ECDHE-RSA-AES256-GCM-SHA384 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD
ECDHE-ECDSA-AES256-GCM-SHA384 Kx=ECDH Au=ECDSA Enc=AESGCM(256) Mac=AEAD
ECDHE-RSA-AES256-SHA Kx=ECDH Au=RSA Enc=AES(256) Mac=SHA1
ECDH-ECDSA-AES256-GCM-SHA384 Kx=ECDH/ECDSA Au=ECDH Enc=AESGCM(256) Mac=AEAD
ECDH-RSA-AES128-GCM-SHA256 Kx=ECDH/RSA Au=ECDH Enc=AESGCM(128) Mac=AEAD
ECDH-ECDSA-AES128-GCM-SHA256 Kx=ECDH/ECDSA Au=ECDH Enc=AESGCM(128) Mac=AEAD
ECDH-RSA-AES128-SHA256 Kx=ECDH/RSA Au=ECDH Enc=AES(128) Mac=SHA256
ECDH-ECDSA-AES128-SHA256 Kx=ECDH/ECDSA Au=ECDH Enc=AES(128) Mac=SHA256
AES128-SHA256 Kx=RSA Au=RSA Enc=AES(128) Mac=SHA256
CAMELLIA128-SHA Kx=RSA Au=RSA Enc=Camellia(128) Mac=SHA1
brenhilt@pc[dir]$

「よーしパパあまりに見辛いから仕事サボって帰っちゃうぞー(怒」などという怒号が聞こえるかもしれません.
ギターソロ column かもーん♪

brenhilt@pc[dir]$ cat sample.txt | column -t
ECDHE-RSA-AES256-GCM-SHA384    Kx=ECDH        Au=RSA    Enc=AESGCM(256)    Mac=AEAD
ECDHE-ECDSA-AES256-GCM-SHA384  Kx=ECDH        Au=ECDSA  Enc=AESGCM(256)    Mac=AEAD
ECDHE-RSA-AES256-SHA           Kx=ECDH        Au=RSA    Enc=AES(256)       Mac=SHA1
ECDH-ECDSA-AES256-GCM-SHA384   Kx=ECDH/ECDSA  Au=ECDH   Enc=AESGCM(256)    Mac=AEAD
ECDH-RSA-AES128-GCM-SHA256     Kx=ECDH/RSA    Au=ECDH   Enc=AESGCM(128)    Mac=AEAD
ECDH-ECDSA-AES128-GCM-SHA256   Kx=ECDH/ECDSA  Au=ECDH   Enc=AESGCM(128)    Mac=AEAD
ECDH-RSA-AES128-SHA256         Kx=ECDH/RSA    Au=ECDH   Enc=AES(128)       Mac=SHA256
ECDH-ECDSA-AES128-SHA256       Kx=ECDH/ECDSA  Au=ECDH   Enc=AES(128)       Mac=SHA256
AES128-SHA256                  Kx=RSA         Au=RSA    Enc=AES(128)       Mac=SHA256
CAMELLIA128-SHA                Kx=RSA         Au=RSA    Enc=Camellia(128)  Mac=SHA1
brenhilt@pc[dir]$

-tの後ろに-s"字"とかつけてdelimiter指定できますので,logとかを眺めるときに便利かもしれません.

20
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?