2019-11-10 08:42:59 +00:00
|
|
|
# count
|
|
|
|
|
|
|
|
This command counts the number of rows in a table.
|
|
|
|
|
|
|
|
## Examples -
|
|
|
|
|
|
|
|
```shell
|
|
|
|
> ls
|
|
|
|
━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━
|
2020-03-13 17:23:41 +00:00
|
|
|
# │ name │ type │ readonly │ size │ created │ accessed │ modified
|
2019-11-10 08:42:59 +00:00
|
|
|
────┼──────────────────────────────┼───────────┼──────────┼─────────┼──────────────┼──────────────┼──────────────
|
2020-03-13 17:23:41 +00:00
|
|
|
0 │ Desktop │ Directory │ │ 4.1 KB │ 2 months ago │ 2 months ago │ 2 months ago
|
|
|
|
1 │ aur │ Directory │ │ 4.1 KB │ 4 hours ago │ 4 hours ago │ 4 hours ago
|
2019-11-10 08:42:59 +00:00
|
|
|
...
|
2020-03-13 17:23:41 +00:00
|
|
|
75 │ .emulator_console_auth_token │ File │ │ 16 B │ 2 months ago │ 2 months ago │ 2 months ago
|
|
|
|
76 │ bin │ Directory │ │ 4.1 KB │ 2 months ago │ 2 months ago │ 2 months ago
|
2019-11-10 08:42:59 +00:00
|
|
|
━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━
|
|
|
|
> ls | count
|
|
|
|
━━━━━━━━━
|
2020-03-13 17:23:41 +00:00
|
|
|
<value>
|
2019-11-10 08:42:59 +00:00
|
|
|
─────────
|
2020-03-13 17:23:41 +00:00
|
|
|
77
|
2019-11-10 08:42:59 +00:00
|
|
|
━━━━━━━━━
|
|
|
|
> ls | get name | count
|
|
|
|
━━━━━━━━━
|
2020-03-13 17:23:41 +00:00
|
|
|
<value>
|
2019-11-10 08:42:59 +00:00
|
|
|
─────────
|
2020-03-13 17:23:41 +00:00
|
|
|
77
|
2019-11-10 08:42:59 +00:00
|
|
|
━━━━━━━━━
|
|
|
|
> ls | where type == File | count
|
|
|
|
━━━━━━━━━
|
2020-03-13 17:23:41 +00:00
|
|
|
<value>
|
2019-11-10 08:42:59 +00:00
|
|
|
─────────
|
2020-03-13 17:23:41 +00:00
|
|
|
29
|
2019-11-10 08:42:59 +00:00
|
|
|
━━━━━━━━━
|
|
|
|
> ls | where type == Directory | count
|
|
|
|
━━━━━━━━━
|
2020-03-13 17:23:41 +00:00
|
|
|
<value>
|
2019-11-10 08:42:59 +00:00
|
|
|
─────────
|
2020-03-13 17:23:41 +00:00
|
|
|
48
|
2019-11-10 08:42:59 +00:00
|
|
|
━━━━━━━━━
|
|
|
|
> ls | where size > 2KB | count
|
|
|
|
━━━━━━━━━
|
2020-03-13 17:23:41 +00:00
|
|
|
<value>
|
2019-11-10 08:42:59 +00:00
|
|
|
─────────
|
2020-03-13 17:23:41 +00:00
|
|
|
57
|
2019-11-10 08:42:59 +00:00
|
|
|
━━━━━━━━━
|
|
|
|
```
|