1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Merge pull request #47 from efx/parse-s3-ls-output

add a one liner to parse aws s3 ls output
This commit is contained in:
Darren Schroeder 2021-05-03 14:44:33 -05:00 committed by GitHub
commit e78dbe449b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,3 @@
# transform the aligned text output of aws s3 ls into something useful
# presumes you have the aws CLI
aws s3 ls s3://your-bucket-and-path | lines | each { echo $it | str find-replace ' ' ' ' | str find-replace ' ' ' ' } | split column ' '