From 50616cc62c99e0ae73b4d088ffec535dba533f5a Mon Sep 17 00:00:00 2001 From: Shaurya Shubham Date: Sun, 10 Nov 2019 14:12:59 +0530 Subject: [PATCH] Add docs for the count command Partial fix of issue #711 --- docs/commands/count.md | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 docs/commands/count.md diff --git a/docs/commands/count.md b/docs/commands/count.md new file mode 100644 index 0000000000..e330dcc187 --- /dev/null +++ b/docs/commands/count.md @@ -0,0 +1,48 @@ +# count + +This command counts the number of rows in a table. + +## Examples - + +```shell +> ls +━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━ + # │ name │ type │ readonly │ size │ created │ accessed │ modified +────┼──────────────────────────────┼───────────┼──────────┼─────────┼──────────────┼──────────────┼────────────── + 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 +... + 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 +━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━ +> ls | count +━━━━━━━━━ + +───────── + 77 +━━━━━━━━━ +> ls | get name | count +━━━━━━━━━ + +───────── + 77 +━━━━━━━━━ +> ls | where type == File | count +━━━━━━━━━ + +───────── + 29 +━━━━━━━━━ +> ls | where type == Directory | count +━━━━━━━━━ + +───────── + 48 +━━━━━━━━━ +> ls | where size > 2KB | count +━━━━━━━━━ + +───────── + 57 +━━━━━━━━━ +```