From 254cf9f450acdcf32dcd8d69775ae65c34431205 Mon Sep 17 00:00:00 2001 From: NNRepos <45516943+NNRepos@users.noreply.github.com> Date: Thu, 31 Oct 2019 19:36:53 +0200 Subject: [PATCH] clip: add examples, fix typos (#3503) --- pages/windows/clip.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pages/windows/clip.md b/pages/windows/clip.md index 2e3fc5f6c..872b1bfa1 100644 --- a/pages/windows/clip.md +++ b/pages/windows/clip.md @@ -9,4 +9,12 @@ - Copy the contents of a file to the Windows clipboard: -`clip < {{path/to/file}}` +`clip < {{path/to/file.ext}}` + +- Copy text with a trailing newline to the Windows clipboard: + +`echo {{some text}} | clip` + +- Copy text without a trailing newline to the Windows clipboard: + +`echo | set /p="some text" | clip`