On Sat, 27 Nov 2004 16:00:35 +0100, Michael Schwendt wrote > On Fri, 26 Nov 2004 17:37:42 -0600, Mike Vanecek wrote: > > I would like to run the output of a bash command that produces 1 field per > > line output through sort and then output in 3 columns. I have looked at > > printf, fmt, column, and so on. > > > > For example, > > > > rpm -qa | sort 2>&1 | column -c 2 > > > > rpm -qa | sort | column -c 2 > Option -c sets the screen width, i.e. the number of horizontal > characters, where one character = one column. So, you don't want > "-c 2", but something way bigger than 2, so two RPM package names > always fit onto the screen horizontally. Opps, thank you ... rpm -qa | sort | column outputs 2 columns very nicely. Had to go to rpm -qa | sort | column -c 100 to get the same thing. This seems to be a bit more flexible ... rpm -qa | sort | pr --columns 3 -aT -W100 Thanks. -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list