From 8b57a42aac518e4277d5f4b9c87689edeb0e90db Mon Sep 17 00:00:00 2001 From: yunlang <72660610+yl4869@users.noreply.github.com> Date: Sun, 2 Oct 2022 21:51:08 +0800 Subject: [PATCH] join: add stdin example (#8416) * join: add '-' file from standard input --- pages/common/join.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/join.md b/pages/common/join.md index 7720ea33ef..afaa32be30 100644 --- a/pages/common/join.md +++ b/pages/common/join.md @@ -18,3 +18,7 @@ - Produce a line for each unpairable line for file1: `join -a {{1}} {{file1}} {{file2}}` + +- Join a file from stdin: + +`cat {{path/to/file1}} | join - {{path/to/file2}}`