mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-31 01:41:27 +08:00
echo, cat: add stdin example (#19194)
Co-authored-by: Lena Pastwa <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
@@ -27,3 +27,7 @@
|
||||
- Print the exit status of the last executed command (Note: In Windows Command Prompt and PowerShell the equivalent commands are `echo %errorlevel%` and `$lastexitcode` respectively):
|
||||
|
||||
`echo $?`
|
||||
|
||||
- Pass text to another program through `stdin`:
|
||||
|
||||
`echo "{{Hello World}}" | {{program}}`
|
||||
|
||||
@@ -26,3 +26,7 @@
|
||||
- Display all characters, including tabs, line endings, and non-printing characters:
|
||||
|
||||
`cat {{[-A|--show-all]}} {{path/to/file}}`
|
||||
|
||||
- Pass file contents to another program through `stdin`:
|
||||
|
||||
`cat {{path/to/file}} | {{program}}`
|
||||
|
||||
Reference in New Issue
Block a user