]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: fix join examples in texinfo
authorMartin Castillo <castilma@uni-bremen.de>
Wed, 20 Feb 2019 07:25:40 +0000 (23:25 -0800)
committerPádraig Brady <P@draigBrady.com>
Wed, 20 Feb 2019 07:29:04 +0000 (23:29 -0800)
* doc/coreutils.texi (join invocation): Fix various errors.
Fixes https://bugs.gnu.org/34583
Fixes https://bugs.gnu.org/34584

doc/coreutils.texi

index 25438d59591447d421cdcb195b2d368246df61a0..028371673b51f87da7a683ed85bb8675616baf1d 100644 (file)
@@ -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.