aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-01-09 09:23:03 +0100
committerUlrich Müller <ulm@gentoo.org>2020-01-09 09:31:56 +0100
commit13a6ca4187596d1b90c1f5831f1e6569567b59ee (patch)
treedfd574f93f754cb40233053c86845034b82ef0ba /tools-reference
parenttools-reference/head-and-tail: Fix highlighting in title. (diff)
downloaddevmanual-13a6ca4187596d1b90c1f5831f1e6569567b59ee.tar.gz
devmanual-13a6ca4187596d1b90c1f5831f1e6569567b59ee.tar.bz2
devmanual-13a6ca4187596d1b90c1f5831f1e6569567b59ee.zip
tools-reference/{cut,head-and-tail}: Space between option and argument.
POSIX Utility Syntax Guidelines (Guideline 6) say that option and mandatory option-argument should be separate arguments: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'tools-reference')
-rw-r--r--tools-reference/cut/text.xml4
-rw-r--r--tools-reference/head-and-tail/text.xml4
2 files changed, 4 insertions, 4 deletions
diff --git a/tools-reference/cut/text.xml b/tools-reference/cut/text.xml
index ccfd1e8..a608499 100644
--- a/tools-reference/cut/text.xml
+++ b/tools-reference/cut/text.xml
@@ -44,7 +44,7 @@ could use:
</p>
<codesample lang="ebuild">
-cut -s -d',' -f2,4-5 input.txt > output.txt
+cut -s -d , -f 2,4-5 input.txt &gt; output.txt
</codesample>
<p>
@@ -52,7 +52,7 @@ To chop the first character off stdin, one could use:
</p>
<codesample lang="ebuild">
-do_stuff | cut -c2-
+do_stuff | cut -c 2-
</codesample>
<p>
diff --git a/tools-reference/head-and-tail/text.xml b/tools-reference/head-and-tail/text.xml
index 44f0264..f34686a 100644
--- a/tools-reference/head-and-tail/text.xml
+++ b/tools-reference/head-and-tail/text.xml
@@ -32,8 +32,8 @@ file. The <c>-n</c> argument specifies how many lines to display.
</p>
<p>
-To specify "the last five lines", use <c>tail -n5</c>. To specify "all
-but the first five lines", use <c>tail -n+6</c>.
+To specify "the last five lines", use <c>tail -n 5</c>. To specify "all
+but the first five lines", use <c>tail -n +6</c>.
</p>
<codesample lang="ebuild">