2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-01-23 10:25:22 +00:00
nushell/docs/commands/size.md
Chris Gillespie f54cf8a096
Size command: rename max length to bytes ()
Since max length is just getting the byte length, rename to bytes
in order to be more clear.
2020-09-01 14:51:35 +12:00

1,002 B

size

This commands gives word count statistics on any text.

Examples

> open lalala.txt | size
━━━━━━━┯━━━━━━━┯━━━━━━━┯━━━━━━━━━━━━
 lines │ words │ chars │ bytes
───────┼───────┼───────┼────────────
     4107272
━━━━━━━┷━━━━━━━┷━━━━━━━┷━━━━━━━━━━━━
> open the_mysterious_affair_at_styles.txt | size
━━━━━━━┯━━━━━━━┯━━━━━━━━┯━━━━━━━━━━━━
 lines │ words │ chars  │ bytes
───────┼───────┼────────┼────────────
  893562352349459361771
━━━━━━━┷━━━━━━━┷━━━━━━━━┷━━━━━━━━━━━━