aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.6k stars 4.14k forks source link

aws s3 ls --include --exclude #4832

Open tooptoop4 opened 4 years ago

tooptoop4 commented 4 years ago

ls command should support --include --exclude

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

kyleknap commented 4 years ago

Seems reasonable to me. Marking as a feature request.

jorgeorpinel commented 1 year ago

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.

gyula-lakatos commented 1 year ago

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. :/

chhh commented 3 months ago

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

mikkelee commented 2 months ago

Any progress on this or #4941?