Autoframework (Jeff Sickel)
This commit is contained in:
parent
f810f8a5b0
commit
fc165dcb3e
3 changed files with 87 additions and 5 deletions
21
bin/psu
21
bin/psu
|
|
@ -19,4 +19,23 @@ case $# in
|
|||
exit 1
|
||||
esac
|
||||
|
||||
9 ps $flag | grep "^$user "
|
||||
9 ps $flag | grep "^$user " | awk '
|
||||
BEGIN { min = 1000000 };
|
||||
{
|
||||
line[0+nline++] = $0;
|
||||
n = length;
|
||||
sub(/ +/, "", $0);
|
||||
n -= length;
|
||||
if(n < min)
|
||||
min = n;
|
||||
}
|
||||
END{
|
||||
s = "";
|
||||
for(i=0; i<min-1; i++)
|
||||
s = s " ";
|
||||
for(i=0; i<nline; i++){
|
||||
sub(s, "", line[i])
|
||||
print line[i]
|
||||
}
|
||||
}
|
||||
'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue