Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services aws s3 ls递归grep扩展';。mov&x27;和总尺寸_Amazon Web Services_Amazon S3_Amazon Ec2_Aws Cli - Fatal编程技术网

Amazon web services aws s3 ls递归grep扩展';。mov&x27;和总尺寸

Amazon web services aws s3 ls递归grep扩展';。mov&x27;和总尺寸,amazon-web-services,amazon-s3,amazon-ec2,aws-cli,Amazon Web Services,Amazon S3,Amazon Ec2,Aws Cli,我想知道如何以递归方式列出AmazonS3 bucket中的文件,并过滤.mov文件 样本输出: 样本: filename1.mov1 120mb<br> filename2.mov2 300mb Total Object : 2 Total Size: 420mb 谢谢--包括和--排除选项不适用于 一个选项是grep以获得*.mov*,但您将丢失所有对象和大小信息 aws s3 ls --summarize --human-readable --recursive

我想知道如何以递归方式列出AmazonS3 bucket中的文件,并过滤.mov文件

样本输出:

样本:

filename1.mov1    120mb<br>
filename2.mov2    300mb

Total Object : 2
Total Size: 420mb
谢谢

--包括
--排除
选项不适用于

一个选项是grep以获得
*.mov*
,但您将丢失所有对象和大小信息

aws s3 ls --summarize --human-readable --recursive s3://mybucket/Videos | egrep '*.mov*'

令人惊叹的。非常感谢。
aws s3 ls --summarize --human-readable --recursive s3://mybucket/Videos | egrep '*.mov*'