diff --git a/pages/common/print.md b/pages/common/print.md index d5ba5cfea3..7547a095de 100644 --- a/pages/common/print.md +++ b/pages/common/print.md @@ -1,25 +1,15 @@ # print -> Z Shell (`zsh`) builtin. Prints arguments, similar to `echo`. -> See also: `echo`, `printf`, `zsh`. -> More information: . +> `print` can refer to multiple commands with the same name. -- Print input: +- View documentation for the Zsh builtin: -`print "Hello" "World"` +`tldr print.zsh` -- Print separated by newline(s): +- View documentation for the `print` alias of `run-mailcap`: -`print -l "Line1" "Line 2" "Line3"` +`tldr --platform linux print.runmailcap` -- Print without trailing newline: +- View documentation for printing text files on Windows: -`print -n "Hello"; print "World"` - -- Enable backslash escapes: - -`print -e "Line 1\nLine2"` - -- Print arguments as described by 'printf' (for greater portability across shells, consider instead the `printf` command): - -`print -f "%s is %d years old.\n" "Alice" 30` +`tldr --platform windows print.win` diff --git a/pages/common/print.zsh.md b/pages/common/print.zsh.md new file mode 100644 index 0000000000..4970cf9905 --- /dev/null +++ b/pages/common/print.zsh.md @@ -0,0 +1,25 @@ +# print + +> Z Shell (`zsh`) builtin. Prints arguments, similar to `echo`. +> See also: `echo`, `printf`, `zsh`. +> More information: . + +- Print input: + +`print "Hello" "World"` + +- Print separated by newline(s): + +`print -l "Line1" "Line 2" "Line3"` + +- Print without trailing newline: + +`print -n "Hello"; print "World"` + +- Enable backslash escapes: + +`print -e "Line 1\nLine2"` + +- Print arguments as described by `printf` (for greater portability across shells, consider using the `printf` command instead): + +`print -f "%s is %d years old.\n" "Alice" 30` diff --git a/pages/linux/print.md b/pages/linux/print.runmailcap.md similarity index 100% rename from pages/linux/print.md rename to pages/linux/print.runmailcap.md diff --git a/pages/windows/print.md b/pages/windows/print.win.md similarity index 100% rename from pages/windows/print.md rename to pages/windows/print.win.md