diff --git a/pages/common/echo.md b/pages/common/echo.md index b630b2c0afe4d1..9dc19357ce81ae 100644 --- a/pages/common/echo.md +++ b/pages/common/echo.md @@ -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}}` diff --git a/pages/linux/cat.md b/pages/linux/cat.md index e8bb910bc4a99a..3079ca382169a4 100644 --- a/pages/linux/cat.md +++ b/pages/linux/cat.md @@ -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}}`