From f473489f48f827c43db87abece13f70e67bb6a98 Mon Sep 17 00:00:00 2001 From: Martin Castillo Date: Tue, 19 Feb 2019 23:25:40 -0800 Subject: [PATCH] doc: fix join examples in texinfo * doc/coreutils.texi (join invocation): Fix various errors. Fixes https://bugs.gnu.org/34583 Fixes https://bugs.gnu.org/34584 --- doc/coreutils.texi | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 25438d5959..028371673b 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -6536,7 +6536,7 @@ matches the default operation of sort: @group $ sort file1 > file1.sorted $ sort file2 > file2.sorted -$ join -t'' file1.sorted file2.sorted > file3 +$ join -t '' file1.sorted file2.sorted > file3 @end group @end example @@ -6627,7 +6627,7 @@ see note below regarding @code{-o auto}. @item @example $ join -v 1 file1 file2 -b 1 +b 2 @end example @tab unpaired lines from the first file @@ -6692,6 +6692,7 @@ $ cat file2 a a2 c c2 b b2 + $ join file1 file2 a a1 a2 c c1 c2 @@ -6760,22 +6761,22 @@ perform the equivalent of set operations on files: @item @code{sort file1 file2 | uniq -u} @tab Symmetric Difference of unsorted files -@item @code{join -t'' -a1 -a2 file1 file2} +@item @code{join -t '' -a1 -a2 file1 file2} @tab Union of sorted files -@item @code{join -t'' file1 file2} +@item @code{join -t '' file1 file2} @tab Intersection of sorted files -@item @code{join -t'' -v2 file1 file2} +@item @code{join -t '' -v2 file1 file2} @tab Difference of sorted files -@item @code{join -t'' -v1 -v2 file1 file2} +@item @code{join -t '' -v1 -v2 file1 file2} @tab Symmetric Difference of sorted files @end multitable All examples above operate on entire lines and not on specific fields: -@command{sort} without @option{-k} and @command{join -t''} both consider +@command{sort} without @option{-k} and @command{join -t ''} both consider entire lines as the key. -- 2.47.2