mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 15:17:47 +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:
commit
e78dbe449b
1 changed files with 3 additions and 0 deletions
3
cool_oneliners/parse_aws_s3_ls.nu
Normal file
3
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 { echo $it | str find-replace ' ' ' ' | str find-replace ' ' ' ' } | split column ' '
|
Loading…
Add table
Add a link
Reference in a new issue