1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 13:55:24 +02:00

print: add disambiguation page (#15746)

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
This commit is contained in:
Lena 2025-02-24 05:21:35 +01:00 committed by GitHub
parent f5c4801008
commit a51cfa5f7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 additions and 17 deletions

View file

@ -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
View 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`