From 4f04b5bbb2523edf3c7a892412710626eab3e696 Mon Sep 17 00:00:00 2001 From: Michael Angerman <1809991+stormasm@users.noreply.github.com> Date: Mon, 14 Feb 2022 18:22:02 -0800 Subject: [PATCH] copy over to engine-q demo.nu --- engine-q/nu_101/README.md | 5 +++++ engine-q/nu_101/demo.nu | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 engine-q/nu_101/README.md create mode 100644 engine-q/nu_101/demo.nu diff --git a/engine-q/nu_101/README.md b/engine-q/nu_101/README.md new file mode 100644 index 0000000..cb27bca --- /dev/null +++ b/engine-q/nu_101/README.md @@ -0,0 +1,5 @@ +# Nu_101 Scripts + +### Definition + +These scripts should be used to demonstrate to the beginner how nushell scripting works. Perhaps how it's different from Windows `batch` files and `bash` shell scripts. Also, to show off how nushell pipes commands in and out of one another. diff --git a/engine-q/nu_101/demo.nu b/engine-q/nu_101/demo.nu new file mode 100644 index 0000000..257ccb6 --- /dev/null +++ b/engine-q/nu_101/demo.nu @@ -0,0 +1,5 @@ +def my-ls [x] { + ls $x | where size > 10kb +} + +my-ls .