Skip to content

Commit

Permalink
readme: update using wildcards section (peak#432)
Browse files Browse the repository at this point in the history
* readme: update `using wildcards` section

* readme: put single quotes

* readme: better

* fix typo
  • Loading branch information
igungor authored Apr 11, 2022
1 parent d4aa0cf commit 670b138
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,19 @@ via `--retry-count` flag.

## Using wildcards

Most shells can attempt to expand wildcards before passing the arguments to
`s5cmd`, resulting in surprising `no matches found` errors.
On some shells, like zsh, the `*` character gets treated as a file globbing
wildcard, which causes unexpected results for `s5cmd`. You might see an output
like:

To avoid this problem, surround the wildcarded expression with single quotes.
```
zsh: no matches found
```

If that happens, you need to wrap your wildcard expression in single quotes, like:

```
s5cmd cp '*.gz' s3://bucket/
```

## Output

Expand Down

0 comments on commit 670b138

Please sign in to comment.