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
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,9 +80,9 @@ You can also install `s5cmd` from [MacPorts](https://ports.macports.org/port/s5c
80
80
> conda config --add channels conda-forge
81
81
> conda config --set channel_priority strict
82
82
> ```
83
-
>
83
+
>
84
84
> Once the `conda-forge` channel has been enabled, `s5cmd` can be installed with `conda`:
85
-
>
85
+
>
86
86
> ```
87
87
> conda install s5cmd
88
88
> ```
@@ -284,7 +284,7 @@ Or you can compress the data before uploading:
284
284
285
285
#### Delete multiple S3 objects
286
286
287
-
s5cmd rm s3://bucket/logs/2020/03/19/*
287
+
s5cmd rm 's3://bucket/logs/2020/03/19/*'
288
288
289
289
Will remove all matching objects:
290
290
@@ -319,7 +319,7 @@ folder hierarchy.
319
319
an [open ticket](https://github.com/peak/s5cmd/issues/29) to track the issue.
320
320
321
321
#### Using Exclude and Include Filters
322
-
`s5cmd` supports the `--exclude` and `--include` flags, which can be used to specify patterns for objects to be excluded or included in commands.
322
+
`s5cmd` supports the `--exclude` and `--include` flags, which can be used to specify patterns for objects to be excluded or included in commands.
323
323
324
324
- The `--exclude` flag specifies objects that should be excluded from the operation. Any object that matches the pattern will be skipped.
325
325
- The `--include` flag specifies objects that should be included in the operation. Only objects that match the pattern will be handled.
@@ -382,7 +382,7 @@ or
382
382
`commands.txt` content could look like:
383
383
384
384
```
385
-
cp s3://bucket/2020/03/* logs/2020/03/
385
+
cp 's3://bucket/2020/03/*' logs/2020/03/
386
386
387
387
# line comments are supported
388
388
rm s3://bucket/2020/03/19/file2.gz
@@ -540,7 +540,7 @@ The environment variable `SHELL` must be accurate for the autocompletion to func
540
540
The autocompletion is tested with following versions of the shells: \
541
541
***zsh*** 5.8.1 (x86_64-apple-darwin21.0) \
542
542
GNU ***bash***, version 5.1.16(1)-release (x86_64-apple-darwin21.1.0) \
543
-
***PowerShell*** 7.2.6
543
+
***PowerShell*** 7.2.6
544
544
545
545
### Google Cloud Storage support
546
546
@@ -747,7 +747,7 @@ For a more practical scenario, let's say we have an [avocado prices](https://www
747
747
`s5cmd` allows to pass in some file, containing list of operations to be performed, as an argument to the `run` command as illustrated in the [above](./README.md#L293) example. Alternatively, one can pipe in commands into
748
748
the `run:`
749
749
750
-
BUCKET=s5cmd-test; s5cmd ls s3://$BUCKET/*test | grep -v DIR | awk ‘{print $NF}’
750
+
BUCKET=s5cmd-test; s5cmd ls "s3://$BUCKET/*test" | grep -v DIR | awk ‘{print $NF}’
The above command performs two `s5cmd` invocations; first, searches for files with *test* suffix and then creates a *copy to local directory* command for each matching file and finally, pipes in those into the ` run.`
@@ -774,7 +774,7 @@ Rather than executing
774
774
775
775
with `run` command, it is better to just use
776
776
777
-
rm s3://bucket/prefix/2020/0*/object*.gz
777
+
rm 's3://bucket/prefix/2020/0*/object*.gz'
778
778
779
779
the latter sends single delete request per thousand objects, whereas using the former approach
780
780
sends a separate delete request for each subcommand provided to `run.` Thus, there can be a
0 commit comments