Re: Format Output of bash into columns

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

 



On Sat, 27 Nov 2004 17:41:54 +0300, Alexey Fadyushin wrote
> 
> To prevent truncation when using 'pr' you could use its option '-J' 
> (columns will not be truncated, but there will be problems with 
> alingment of columns) or explicitly specify the width of resulting 
> output using '-W<number of chars>' (by default 'pr' output is 72 
> characters wide).
> 
> For example:
> rpm -qa | sort | pr --columns 3 -aT -J
> or
> rpm -qa | sort | pr --columns 3 -aT -W132

That helps, even ... 

rpm -qa | sort | pr --columns 3 -aT -W100 

or 

pr --columns 3 -aT -W100 rpm.txt

Very useful command.

Thank you.

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux