summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-07-15 00:14:07 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-07-15 16:12:04 -0400
commit01d7e8c2782f61e741f8beff7888adfbdb61779d (patch)
tree316a62946fabcc1fedc509169f90fd042fb7c01b /doc
parent423f5f867c78f47bb6b9cb452bc7dde702ba6742 (diff)
downloadguix-01d7e8c2782f61e741f8beff7888adfbdb61779d.tar.gz
doc: Use Awk in one of the examples.
The output of the listing of available packages now contains a mix of tab and
space characters, so that its output is more pleasing to read.  This preserves
most simple uses of 'cut', but the added extra space padding can cause a
change in behavior in some scenarios.

* doc/guix.texi (Invoking guix build): Replace 'cut' by 'awk' in one of the
examples.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 46cec73d11..60a9597355 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -10227,7 +10227,7 @@ Similarly, the following command builds all the available packages:
 
 @example
 guix build --quiet --keep-going \
-  $(guix package -A | cut -f1,2 --output-delimiter=@@)
+  $(guix package -A | awk '@{ print $1 "@@" $2 @}')
 @end example
 
 @var{package-or-derivation} may be either the name of a package found in