Re: [PATCH] docs: column.1 describe change of separator behavior in bugs section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/29/2012 10:21 AM, Sami Kerola wrote:
Add to manual page how to achieve old behavior, just in case someone
relies on buggy behavior of the command.

Reported-by: P�draig Brady<P@xxxxxxxxxxxxxx>
Signed-off-by: Sami Kerola<kerolasa@xxxxxx>
---
  text-utils/column.1 | 29 +++++++++++++++++++++++++++++
  1 file changed, 29 insertions(+)

diff --git a/text-utils/column.1 b/text-utils/column.1
index 2050666..775c73b 100644
--- a/text-utils/column.1
+++ b/text-utils/column.1
@@ -65,6 +65,35 @@ the screen if no other information is available.
  .nf
  sed 's/#.*//' /etc/fstab | column -t
  .nf
+.SH BUGS
+The util-linux version 2.23 changed
+.B \-s
+option to be non-greedy.  The change made the following output
+.PP
+.EX
+$ printf "a:b:c\n1::3\n" | column  -t -s ':'
+a  b  c
+1  3
+.EE
+.PP
+to be
+.PP
+.EX
+$ printf "a:b:c\n1::3\n" | column  -t -s ':'
+a  b  c
+1     3
+.EE
+.PP
+If there is need to use greedy separator the old behavior can be achieved
+by filtering with
+.BR sed (1).
+.PP
+.EX
+$ printf "xzcatxzdog\\ndonkeyxzzxkong\\n" |
+>  sed 's/^[xz]*//
+>  s/[xz]\\+/x/g' |
+>  column -t -s xz
+.EE

Too much info for a man page IMHO.

cheers,
Pádraig.
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux