I am trying to execute some PS commands on IBM AIX and Solaris. The output I get is not properly formatted, I want to see the values for each column with some fixed width.
Is there anyway I can mention width for each column that PS command shows?
|
feedback
|
|
In GNU
In Solaris and AIX, you can specify the column header to widen columns. Here, I'm padding with hyphens, but you could use something else:
This also works for GNU | |||||||
feedback
|
|
I script against a Posix complaint df which standardizes the output for both AIX and Support. AIX: SUN: | |||
|
feedback
|
psoutput is normally aligned in columns without any extra effort. Also, show an example of what you mean by "not properly formatted". – Dennis Williamson Jul 3 '10 at 0:38