Skip to main content
13 events
when toggle format what by license comment
Feb 29, 2020 at 4:22 vote accept Kalpesh Bhoj
Feb 29, 2020 at 5:35
Feb 26, 2020 at 23:38 history edited JoL CC BY-SA 4.0
add comments on column and pr
Feb 26, 2020 at 16:46 comment added JoL @iruvar I see online manpages do say that it's for "display columns". Mine comes from the package util-linux in Archlinux. I imagine all linux distros use the same one as mine. I also checked a FreeBSD/PfSense installation and seq 10 | column -c 3 also displays a single column.
Feb 26, 2020 at 16:46 comment added iruvar Ah, they seem to have changed that in a recent version of column. The man page for my obsolete version states this : -c Output is formatted for a display columns wide. Anyways, +1
Feb 26, 2020 at 16:31 comment added JoL @iruvar Are you talking about column -c? That seems to be for setting the line width. According to the manpage: "Output is formatted to a width specified as number of characters." It was originally named --columns, but that name was deprecated in favor of --output-width. seq 10 | column -c 3 displays a single column. column -c 50 seems to limit lines to 50 characters.
Feb 26, 2020 at 16:25 comment added iruvar JoL, sorry if I was not clear - my previous comment was in response to your question around the ability to specify number of columns to the column command. One could do that using -c
Feb 26, 2020 at 16:17 comment added JoL @iruvar I'm not sure what you're getting at. The number of display columns is what we want. The actual number displayed may be less than specified if it otherwise would not fit in the set line width, which by default is 79, but other than that I don't see an issue.
Feb 26, 2020 at 14:24 comment added iruvar JoL, the -c flag exists to specify the number of display columns, which may or may not be different to the "number of columns" that columns allows to specify
Feb 26, 2020 at 0:15 comment added JoL @iruvar That column doesn't seem to have a way to specify number of columns.
Feb 25, 2020 at 23:11 comment added iruvar this seems to work more or less the same way as the better known column command. Any reason to pick columns over column that you might be aware of?
Feb 25, 2020 at 12:34 history edited JdeBP CC BY-SA 4.0
Have some more information.
Feb 25, 2020 at 7:55 review Low quality posts
Feb 25, 2020 at 8:17
Feb 25, 2020 at 7:36 history answered JoL CC BY-SA 4.0