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/binUsing 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 -rOPTIONS -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`