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