aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

aws s3 ls --include --exclude

Open tooptoop4 opened this issue 5 years ago • 5 comments

ls command should support --include --exclude

that way can get '--recursive --human-readable --summarize' sizes for only objects with abc in the key name

tooptoop4 avatar Jan 10 '20 13:01 tooptoop4

Seems reasonable to me. Marking as a feature request.

kyleknap avatar Jan 23 '20 00:01 kyleknap

Would be pretty nice indeed. I'm surprised this is the one subcommand that doesn't have it actually 😄 . Hoping https://github.com/aws/aws-cli/pull/4941 goes through soon! 🤞🏼

U: I just realized you may achieve similar goals with s3api list-objects-v2 --prefix/delimiter ... --query ... (docs), but you have to learn JMESPath.

jorgeorpinel avatar Dec 20 '22 22:12 jorgeorpinel

Is there any plans to do finish this ticket? I'm keep coming back to this issue every second mont because I want to use these parameters. :/

gyula-lakatos avatar Jul 13 '23 08:07 gyula-lakatos

Any updates on this one? It's a pre-requisite for cp command, I need to explore what do I want to copy first, then when I've finally figured the right include/exclude I can change ls to cp

chhh avatar Aug 07 '24 17:08 chhh

Any progress on this or #4941?

mikkelee avatar Sep 25 '24 06:09 mikkelee