You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
Activity
[-]Table row count command[/-][+]count command[/+]polyrtm commentedon Oct 8, 2019
I'll see what I can do tomorrow.
andrasio commentedon Oct 15, 2019
Closing this. Implemented recently.
waldyrious commentedon Oct 15, 2019
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 tocount.Rename $env.PATH to $env.Path to reflect actual shell behavior (nushe…