1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-30 13:47:46 +00:00

Port before_v0.60 parse_aws_s3_ls.nu (#1086)

Tested with https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html
example output

Note that the script has a placeholder parameter
`s3://your-bucket-and-path`. The script is moved into the `sourced`
folder like all the other ported scripts from the cool_oneliners folder
before it, but sourcing it as-is is not meaningful.

This ports the last file in `before_v0.60`, consequently resolving #221.
This commit is contained in:
Jan Klass 2025-04-19 15:47:13 +02:00 committed by GitHub
parent 1930c7b47f
commit bb19fddc61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +0,0 @@
# 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 ' '

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 { str replace ' ' ' ' | str replace ' ' ' ' } | split column ' '