Skip to content

Commit

Permalink
readme: update filters section (#642)
Browse files Browse the repository at this point in the history
Co-authored-by: İbrahim Güngör <igungor@gmail.com>
  • Loading branch information
ahmethakanbesel and igungor committed Aug 21, 2023
1 parent 6a1ea3c commit f58add9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -317,13 +317,13 @@ The command below will delete all objects except those that end with `.log` or `

s5cmd rm --exclude "*.log" --exclude "*.txt" 's3://bucket/logs/2020/*'

If you wish, you can use multiple flags, like below. It will download objects that start with `request` and end with `.log`.
If you wish, you can use multiple flags, like below. It will download objects that start with `request` or end with `.log`.

s5cmd cp --include "*.log" --include "request*" 's3://bucket/logs/2020/*' .

Using a combination of `--include` and `--exclude` also possible. The command below will only sync objects that end with `.log` and `.txt` but exclude those that start with `access_`. For example, `request.log`, and `license.txt` will be included, while `access_log.txt`, and `readme.md` are excluded.
Using a combination of `--include` and `--exclude` also possible. The command below will only sync objects that end with `.log` or `.txt` but exclude those that start with `access_`. For example, `request.log`, and `license.txt` will be included, while `access_log.txt`, and `readme.md` are excluded.

s5cmd sync --include "*log" --exclude "access_*" --include "*txt" 's3://bucket/logs/*' .
s5cmd sync --include "*.log" --exclude "access_*" --include "*.txt" 's3://bucket/logs/*' .
#### Select JSON object content using SQL

`s5cmd` supports the `SelectObjectContent` S3 operation, and will run your
Expand Down

0 comments on commit f58add9

Please sign in to comment.