From 9cec9cb96eb05ba2f3625b6438edde8e06b45693 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Tue, 16 Jul 2019 08:19:40 +1200 Subject: [PATCH] Update README.md --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d6c5d9d6dc..cb91b9c35f 100644 --- a/README.md +++ b/README.md @@ -25,24 +25,24 @@ In Unix, it's common to pipe between commands to split up a sophisticated comman Commands are separated by the pipe symbol (`|`) to denote a pipeline flowing left to right. ``` -/home/jonathan/Source/nushell(master)> ls | where "file type" == "Directory" | autoview ------------+-----------+----------+--------+--------------+---------------- - file name | file type | readonly | size | accessed | modified ------------+-----------+----------+--------+--------------+---------------- - target | Directory | | 4.1 KB | 19 hours ago | 19 hours ago - images | Directory | | 4.1 KB | 2 weeks ago | a week ago - tests | Directory | | 4.1 KB | 2 weeks ago | 18 minutes ago - docs | Directory | | 4.1 KB | a week ago | a week ago - .git | Directory | | 4.1 KB | 2 weeks ago | 25 minutes ago - src | Directory | | 4.1 KB | 2 weeks ago | 25 minutes ago - .cargo | Directory | | 4.1 KB | 2 weeks ago | 2 weeks ago +/home/jonathan/Source/nushell(master)> ls | where type == "Directory" | autoview +--------+-----------+----------+--------+--------------+---------------- + name | type | readonly | size | accessed | modified +--------+-----------+----------+--------+--------------+---------------- + target | Directory | | 4.1 KB | 19 hours ago | 19 hours ago + images | Directory | | 4.1 KB | 2 weeks ago | a week ago + tests | Directory | | 4.1 KB | 2 weeks ago | 18 minutes ago + docs | Directory | | 4.1 KB | a week ago | a week ago + .git | Directory | | 4.1 KB | 2 weeks ago | 25 minutes ago + src | Directory | | 4.1 KB | 2 weeks ago | 25 minutes ago + .cargo | Directory | | 4.1 KB | 2 weeks ago | 2 weeks ago -----------+-----------+----------+--------+--------------+---------------- ``` Because most of the time you'll want to see the output of a pipeline, `autoview` is assumed. We could have also written the above: ``` -/home/jonathan/Source/nushell(master)> ls | where "file type" == "Directory" +/home/jonathan/Source/nushell(master)> ls | where type == Directory ``` Being able to use the same commands and compose them differently is an important philosophy in Nu. For example, we could use the built-in `ps` command as well to get a list of the running processes, using the same `where` as above.