doc: add interlinks between echo ←→ printf commands

This commit is contained in:
Delapouite
2020-03-01 13:43:14 +01:00
committed by Fabian Homborg
parent 593c43663c
commit 8530a4bd9e
2 changed files with 10 additions and 8 deletions

View File

@@ -66,18 +66,19 @@ This file has been imported from the printf in GNU Coreutils version 6.9. If you
Example
-------
::
printf '%s\\t%s\\n' flounder fish
Will print "flounder fish" (separated with a tab character), followed by a newline character. This is useful for writing completions, as fish expects completion scripts to output the option followed by the description, separated with a tab character.
::
printf '%s: %d' "Number of bananas in my pocket" 42
Will print "Number of bananas in my pocket: 42", _without_ a newline.
See Also
--------
- the :ref:`echo <cmd-echo>` command, for simpler output