Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想列出不以特定前缀开头的文件。我可以很好地列出它们,如下所示:
gsutil ls gs://my_bucket/my_prefix*
我该如何做相反的事情?
做你所说的唯一方法是列出存储桶并在本地机器上过滤结果,例如,
gsutil ls gs://mybucket/** | grep -v gs://my_bucket/my_prefix