← 全部工具

heuermh/cooper

热度 75 更新于 开发与构建

Command line tools for AWS s3.

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

cooper

Command line tools for AWS s3.

<br/

https://en.wikipedia.org/wiki/Cooper(profession)

Motivation

Primarily a workaround for this issue:

Broken pipe error when piping "s3 ls" output to grep -q<br/ https://github.com/aws/aws-cli/issues/5899

Hacking cooper

Install

  • JDK 17 or later, https://openjdk.java.net
  • Apache Maven 3.6.3 or later, https://maven.apache.org

To build

$ mvn package

$ export PATH=$PATH:`pwd`/target/appassembler/bin

Using cooper

Usage

$ coop --help

USAGE
  coop [-hV] [COMMAND]

List s3 paths recursively with content sizes.

E.g.
   $ cat uris.txt | xargs coop ls
   $ coop ls s3://... | head -n 4
   $ coop ls s3://... | grep -m 10 -e '...'
   $ coop ls s3://... | cut -f 2 | sort -n -r

OPTIONS -h, --help Show this help message and exit. -V, --version Print version information and exit.

COMMANDS ls, list List s3 paths recursively with content sizes. help Display help information about the specified command. generate-completion Generate bash/zsh completion script for coop.


At present the only command is `ls`/`list`