mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 07:35:24 +02:00
print: add disambiguation page (#15746)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
This commit is contained in:
parent
f5c4801008
commit
a51cfa5f7e
4 changed files with 32 additions and 17 deletions
|
@ -1,25 +1,15 @@
|
|||
# print
|
||||
|
||||
> Z Shell (`zsh`) builtin. Prints arguments, similar to `echo`.
|
||||
> See also: `echo`, `printf`, `zsh`.
|
||||
> More information: <https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html>.
|
||||
> `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`
|
||||
|
|
25
pages/common/print.zsh.md
Normal file
25
pages/common/print.zsh.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# print
|
||||
|
||||
> Z Shell (`zsh`) builtin. Prints arguments, similar to `echo`.
|
||||
> See also: `echo`, `printf`, `zsh`.
|
||||
> More information: <https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html>.
|
||||
|
||||
- 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`
|
Loading…
Add table
Reference in a new issue