Jan
Jan

Reputation: 2833

download file from s3 to STDOUT

I currently use s3cmd to download a file from s3. However I'd rather output the contents to STOUT. Do you know a unix tool that can do it?

Thanks, Jan

Upvotes: 11

Views: 3671

Answers (1)

Mohamed AMAZIRH
Mohamed AMAZIRH

Reputation: 1217

You'll need to add - to the end of you command arguments to make it redirect the output to STDOUT.

Example : s3cmd get s3://... -

See this thread for more information.

You might also use the --no-progress option to avoid extra information in the output and just get the plain file content

Upvotes: 18

Related Questions