Format Output of bash into columns

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

 



I have looked through my books and googled ... Tried serveral things without
success ...

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

Or say I have a file with a list of sorted names, for example,
[admin@www admin]$ rpm -qa | sort -o rpm.txt

Then I want to output the file with

column -c 2 rpm.txt

Hopefully you get the idea. Would someone please point me in the correct
direction. I am going around in circles.

Thanks.



-- 
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