Sunday, October 9, 2022

[SOLVED] download file from s3 to STDOUT

Issue

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

id='dv3'>

Solution

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



Answered By - Mohamed AMAZIRH
Answer Checked By - Marie Seifert (WPSolving Admin)