amazon-web-services - PowerShell 和命令提示符为 --exclude 和 --include (AWS) 返回未知选项错误
问题描述
我正在尝试在 AWS CLI 中搜索字符串,但排除特定文件类型以将结果缩小到我正在寻找的文件类型,但无论我尝试迭代,PowerShell 和命令提示符都会给出我同样的错误信息。
aws s3api list-objects --bucket mybucket --query "Contents[?contains(Key, 'searchtext')]" --exclude " " --include " .pdf"
编辑:运行 aws s3api list-objects --bucket mybucket --query "Contents[?contains(Key, 'searchtext')]" 工作得很好
解决方案
推荐阅读
- php - 如何提取字符串中特定关键字之后的子字符串?
- javascript - Chunk.entrypoints:使用 Chunks.groupsIterable 并通过 instanceof Entrypoint 过滤
- video-streaming - 使用 GStreamer 的 RTSP 到 HLS
- node.js - 护照本地策略不起作用
- css - 是否可以在拖动时更改光标图标,使用 HTML5 原生拖放
- java - 处理程序未在 1 秒内运行 1000 次
- php - 如何从数据库转换字符串日期?
- abap - 比较 ABAP 中的两个字母数字字符串
- ruby-on-rails - 如何使用 ruby aws s3 一次删除多个对象
- java - char数组java中的意外矩形符号