Skip to content

Commit

Permalink
Fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
NotTheDr01ds committed Oct 3, 2024
1 parent e4206bd commit 0f76c38
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions stdlib-candidate/std-rfc/tables/select-column-ranges.nu
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use ./col-indices.nu *
#
# Example:
#
# ls | select column-ranges 0 4 5 | first 3
# # => ╭───┬────────────────────╮
# # => │ # │ name │
# # => ├───┼────────────────────┤
# # => │ 0 │ CITATION.cff │
# # => │ 1 │ CODE_OF_CONDUCT.md │
# # => │ 2 │ CONTRIBUTING.md │
# # => ╰───┴────────────────────╯
# ls -l | select column-ranges 0 10..12 | first 3
# # => ╭───┬────────────────────┬──────────────┬─────────────┬──────────────
# # => │ # │ name │ created │ accessed │ modified │
# # => ├───┼────────────────────┼──────────────┼─────────────┼──────────────
# # => │ 0 │ CITATION.cff │ 3 months ago │ 4 hours ago │ 3 months ago │
# # => │ 1 │ CODE_OF_CONDUCT.md │ 7 months ago │ 4 hours ago │ 7 months ago │
# # => │ 2 │ CONTRIBUTING.md │ 3 months ago │ 4 hours ago │ 3 months ago │
# # => ╰───┴────────────────────┴──────────────┴─────────────┴──────────────
export def "select column-ranges" [
...ranges
] {
Expand Down

0 comments on commit 0f76c38

Please sign in to comment.