nu_scripts/before_v0.60/cool_oneliners/parse_aws_s3_ls.nu

4 lines
242 B
Plaintext

# 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 ' '