echo, cat: add stdin example (#19194)

Co-authored-by: Lena Pastwa <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
Managor
2025-11-06 00:54:22 +02:00
committed by GitHub
parent 7cf80f82ca
commit f09340f186
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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}}`
+4
View File
@@ -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}}`