4
0

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 3 years have passed since last update.

S3上の圧縮ファイルの中身をコマンドラインで確認する

Posted at

S3に置かれた圧縮ファイル(gzip)の中身をローカルにDLせず、
コマンドラインでさくっと確認する方法。

前提

  • AWS CLIが利用可能であること
$ aws --version
aws-cli/2.0.5 Python/3.7.3 Linux/2.6.32-573.7.1.el6.x86_64 botocore/2.0.0dev9

コマンド

aws s3 cp s3://<bucket_name>/<file_name> - | zcat

コピー先に-を指定して標準出力に流し、それをzcatで表示する。

4
0
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
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?