Skip to content

count command #801

Closed
Closed

Description

@andrasio

As discussed in our Discord Discord chat:

I'd be nice to be able and print the total number of rows that a command gives. Let's say we call the command count. Example:

ls | where name == "Cargo.toml"

━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━
 name       │ type │ readonly │ size   │ created    │ accessed   │ modified
────────────┼──────┼──────────┼────────┼────────────┼────────────┼────────────
 Cargo.toml │ File │          │ 4.2 KB │ 3 days ago │ 3 days ago │ 3 days ago
━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━

Doing ls | where name == "Cargo.toml" | count should print 1

Activity

  1. changed the title [-]Table row count command[/-] [+]count command[/+] on Oct 8, 2019
  2. polyrtm commented on Oct 8, 2019

    @polyrtm

    I'll see what I can do tomorrow.

  3. andrasio commented on Oct 15, 2019

    @andrasio
    MemberAuthor

    Closing this. Implemented recently.

  4. waldyrious commented on Oct 15, 2019

    @waldyrious
    Contributor

    Implemented recently.

    IIUC, that would be #33, right? If so, and just for reference: the command is currently named size, but there's discussion in #408 to rename it to count.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions