From 7a2a34ec176b7434afd9e0517899251f15548db3 Mon Sep 17 00:00:00 2001 From: Yoon Kyong Sik Date: Wed, 7 Aug 2024 07:33:52 +0900 Subject: [PATCH] Create mk-outs script for Windows --- 02_echor/mk-outs.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 02_echor/mk-outs.ps1 diff --git a/02_echor/mk-outs.ps1 b/02_echor/mk-outs.ps1 new file mode 100644 index 0000000..e4b9415 --- /dev/null +++ b/02_echor/mk-outs.ps1 @@ -0,0 +1,9 @@ +$OUTDIR = "tests\expected" +if (-not (Test-Path $OUTDIR)) { + New-Item -ItemType Directory -Path $OUTDIR | Out-Null +} + +"Hello there" | Out-File -FilePath "$OUTDIR\hello1.txt" +"Hello", "there" -join ' ' | Out-File -FilePath "$OUTDIR\hello2.txt" +"Hello there" | Out-File -FilePath "$OUTDIR\hello1.n.txt" -NoNewline +"Hello", "there" -join ' ' | Out-File -FilePath "$OUTDIR\hello2.n.txt" -NoNewline