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:
parent
1930c7b47f
commit
bb19fddc61
2 changed files with 3 additions and 3 deletions
|
@ -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 ' '
|
3
sourced/cool-oneliners/parse_aws_s3_ls.nu
Normal file
3
sourced/cool-oneliners/parse_aws_s3_ls.nu
Normal 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 ' '
|
Loading…
Add table
Add a link
Reference in a new issue