Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command/pipe: update pipe file compression example #708

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -268,7 +268,7 @@ You can upload remote objects by piping stdin to `s5cmd`:

Or you can compress the data before uploading:

tar -cf - file.bin | s5cmd pipe s3://bucket/file.bin.tar
gzip -c file | s5cmd pipe s3://bucket/file.gz

#### Delete an S3 object

Expand Down
2 changes: 1 addition & 1 deletion command/pipe.go
Expand Up @@ -34,7 +34,7 @@ Examples:
03. Download an object and stream it to a bucket
> curl https://github.com/peak/s5cmd/ | s5cmd {{.HelpName}} s3://bucket/s5cmd.html
04. Compress an object and stream it to a bucket
> tar -cf - file.bin | s5cmd {{.HelpName}} s3://bucket/file.bin.tar
> gzip -c file | s5cmd {{.HelpName}} s3://bucket/file.gz
`

func NewPipeCommandFlags() []cli.Flag {
Expand Down