Skip to content

Commit 7e56e29

Browse files
authored
fix(readme): wrap wildcards with quotes (peak#788)
1 parent 991c9fb commit 7e56e29

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ You can also install `s5cmd` from [MacPorts](https://ports.macports.org/port/s5c
8080
> conda config --add channels conda-forge
8181
> conda config --set channel_priority strict
8282
> ```
83-
>
83+
>
8484
> Once the `conda-forge` channel has been enabled, `s5cmd` can be installed with `conda`:
85-
>
85+
>
8686
> ```
8787
> conda install s5cmd
8888
> ```
@@ -284,7 +284,7 @@ Or you can compress the data before uploading:
284284
285285
#### Delete multiple S3 objects
286286
287-
s5cmd rm s3://bucket/logs/2020/03/19/*
287+
s5cmd rm 's3://bucket/logs/2020/03/19/*'
288288
289289
Will remove all matching objects:
290290
@@ -319,7 +319,7 @@ folder hierarchy.
319319
an [open ticket](https://github.com/peak/s5cmd/issues/29) to track the issue.
320320
321321
#### 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.
323323
324324
- The `--exclude` flag specifies objects that should be excluded from the operation. Any object that matches the pattern will be skipped.
325325
- 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
382382
`commands.txt` content could look like:
383383
384384
```
385-
cp s3://bucket/2020/03/* logs/2020/03/
385+
cp 's3://bucket/2020/03/*' logs/2020/03/
386386

387387
# line comments are supported
388388
rm s3://bucket/2020/03/19/file2.gz
@@ -540,7 +540,7 @@ The environment variable `SHELL` must be accurate for the autocompletion to func
540540
The autocompletion is tested with following versions of the shells: \
541541
***zsh*** 5.8.1 (x86_64-apple-darwin21.0) \
542542
GNU ***bash***, version 5.1.16(1)-release (x86_64-apple-darwin21.1.0) \
543-
***PowerShell*** 7.2.6
543+
***PowerShell*** 7.2.6
544544
545545
### Google Cloud Storage support
546546
@@ -747,7 +747,7 @@ For a more practical scenario, let's say we have an [avocado prices](https://www
747747
`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
748748
the `run:`
749749

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}’
751751
| xargs -I {} echo “cp s3://$BUCKET/{} /local/directory/” | s5cmd run
752752

753753
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
774774

775775
with `run` command, it is better to just use
776776

777-
rm s3://bucket/prefix/2020/0*/object*.gz
777+
rm 's3://bucket/prefix/2020/0*/object*.gz'
778778

779779
the latter sends single delete request per thousand objects, whereas using the former approach
780780
sends a separate delete request for each subcommand provided to `run.` Thus, there can be a

0 commit comments

Comments
 (0)