diff --git a/pages/common/less-than.md b/pages/common/less-than.md index 5fd7994048..8a38970adc 100644 --- a/pages/common/less-than.md +++ b/pages/common/less-than.md @@ -9,7 +9,7 @@ - Create a here document and pass that into `stdin` (requires a multiline command): -`{{command}} << {{EOF}} {{multiline_data}} {{EOF}}` +`{{command}} << {{EOF}} {{multiline_text}} {{EOF}}` - Create a here string and pass that into `stdin` (achieves the same effect as `echo string |`): @@ -26,3 +26,7 @@ - Disregard leading tabs (good for scripts with indentation but does not work for spaces): `cat <<- {{EOF}} > {{path/to/file.txt}} {{multiline_data}} {{EOF}}` + +- Pass command output to a program as a file descriptor: + +`diff <({{command1}}) <({{command2}})`