[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/04: doc: Use Awk in one of the examples.
From: |
guix-commits |
Subject: |
04/04: doc: Use Awk in one of the examples. |
Date: |
Thu, 15 Jul 2021 16:12:47 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 01d7e8c2782f61e741f8beff7888adfbdb61779d
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Jul 15 00:14:07 2021 -0400
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.
---
doc/guix.texi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 46cec73..60a9597 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