You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUCKET=s5cmd-test; s5cmd ls s3://$BUCKET/*test | grep -v DIR | awk ‘{print $NF}’
The title should presumably be "Batch mode s5cmd" not "Beast mode s5cmd".
The example is not correct:
BUCKET=s5cmd-test; s5cmd ls s3://$BUCKET/*test | grep -v DIR | awk ‘{print $NF}’
| xargs -I {} echo “cp s3://$BUCKET/{} /local/directory/” | s5cmd run
This will not work if any file name listed by s5cmd ls contains white space (or other "funny" chars) in its name, because:
awk ‘{print $NF}’ will then only extract some suffix of the file name (since a white space in the file name would be used by awk as a field delimiter).
Even if the file name extraction from the result of s5cmd ls was corrected, the resulting input to s5cmd run would most likely not work (also see issue run input syntax is not documented #713).
The text was updated successfully, but these errors were encountered:
s5cmd/README.md
Line 734 in c1c7ee3
The title should presumably be "Batch mode s5cmd" not "Beast mode s5cmd".
The example is not correct:
This will not work if any file name listed by
s5cmd ls
contains white space (or other "funny" chars) in its name, because:awk ‘{print $NF}’
will then only extract some suffix of the file name (since a white space in the file name would be used byawk
as a field delimiter).s5cmd ls
was corrected, the resulting input tos5cmd run
would most likely not work (also see issue run input syntax is not documented #713).The text was updated successfully, but these errors were encountered: