AWS s3 CLi grep command with special characters
2
votes
2
answers
3708
views
I want to copy the whole log that are stored in the AWS S3 bucket if the following line is present:
\"Key\" : 951332,\n
I've tried escaping by trying this:
aws s3 ls s3://bucket_name | grep "/\"Key/\" : 951332,/\n" --recursive
but not getting anything back, does anyone know how I can run the grep in this manner?
Asked by Samosa
(81 rep)
Sep 2, 2019, 12:05 PM
Last activity: Nov 10, 2023, 03:18 PM
Last activity: Nov 10, 2023, 03:18 PM