table

Помоћни програм из командне линије за форматирање и приказ CSV-а
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 4d64b19ae7eeafaca60fa46b954d77313481a3f7
родитељ f84b60946f8ea416a812db6aaf347109cc998491
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Tue, 16 Feb 2021 12:53:34 +0100

Updated the examples from README, index.html and table.1.in to match current command line parameters

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
MREADME | 6+++---
Mindex.html | 4++--
Mtable.1.in | 6+++---
измењених датотека: 3, додавања: 8(+), брисања: 8(-)

diff --git a/README b/README @@ -25,17 +25,17 @@ $ su Periodically display CPU load information in a single-line table - $ watch "table /proc/loadavg -d ' ' -c 50 -s ss" + $ watch "table /proc/loadavg -d ' ' -c 50 -n -s ss" Format a long list of files in the current directory in a double line table with single-line column divisors - $ ls -l | tail -n +2 | sed -e 's/ \+/ /g' | table -d ' ' + $ LC_ALL=C ls -l | tail -n +2 | sed -e 's/ \+/ /g' | table -d ' ' -n Like the above, but only permissions and file names are printed in a narrow table - $ ls -l | tail -n +2 | awk '{ print $1 " " $9 }' | table -d ' ' -c 30 + $ LC_ALL=C ls -l | tail -n +2 | awk '{ print $1 " " $9 }' | table -d ' ' -c 30 -n License diff --git a/index.html b/index.html @@ -94,13 +94,13 @@ $ watch "table /proc/loadavg -d ' ' -c 50 -n -s ss"</pre> single-line table</p> <pre class="example"> -$ ls -l | tail -n +2 | sed -e 's/ \+/ /g' | table -d ' ' -n</pre> +$ LC_ALL=C ls -l | tail -n +2 | sed -e 's/ \+/ /g' | table -d ' ' -n</pre> <p class="explanation">Format a long list of files in the current directory in a double line table with single-line column divisors</p> <pre class="example"> -$ ls -l | tail -n +2 | awk '{ print $1 " " $9 }' | table -d ' ' -c 30</pre> +$ LC_ALL=C ls -l | tail -n +2 | awk '{ print $1 " " $9 }' | table -d ' ' -c 30 -n</pre> <p class="explanation">Like the above, but only permissions and file names are printed in a narrow table</p> diff --git a/table.1.in b/table.1.in @@ -146,7 +146,7 @@ Periodically display load information in a single-line table . .CDS 4 -$ watch "table /proc/loadavg -d ' ' -c 50 -s ss" +$ watch "table /proc/loadavg -d ' ' -c 50 -n -s ss" .CDE . .LP @@ -154,7 +154,7 @@ Format a long list of files in the current directory in a double line table with single-line column divisors . .CDS 4 -$ ls -l | tail -n +2 | sed -e 's/ \+/ /g' | table -d ' ' +$ LC_ALL=C ls -l | tail -n +2 | sed -e 's/ \+/ /g' | table -d ' ' -n .CDE . .LP @@ -162,7 +162,7 @@ Like the above, but only permissions and file names are printed in a narrow table . .CDS 4 -$ ls -l | tail -n +2 | awk '{ print $1 " " $9 }' | table -d ' ' -c 30 +$ LC_ALL=C ls -l | tail -n +2 | awk '{ print $1 " " $9 }' | table -d ' ' -c 30 -n .CDE . .SH BUGS