Skip to content

Commit bb19fdd

Browse files
authored
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.
1 parent 1930c7b commit bb19fdd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

before_v0.60/cool_oneliners/parse_aws_s3_ls.nu

-3
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# transform the aligned text output of aws s3 ls into something useful
2+
# presumes you have the aws CLI
3+
aws s3 ls s3://your-bucket-and-path | lines | each { str replace ' ' ' ' | str replace ' ' ' ' } | split column ' '

0 commit comments

Comments
 (0)