TipsShell: Simplifier commande awk
This commit is contained in:
parent
8a951f899e
commit
606cd79c2f
|
@ -551,7 +551,7 @@ pgrep -u <user1> | xargs -r ps -F
|
|||
#### Liste simple
|
||||
|
||||
~~~{.bash}
|
||||
$ ps -e -o etimes=,pid,cmd | sort -rn | awk '{if ($1!=0 && $3!~/\[.*\]/) print $0 }'
|
||||
$ ps -e -o etimes=,pid,cmd | sort -rn | awk '$1 != 0 && $3 !~ /^\[/'
|
||||
~~~
|
||||
|
||||
#### il y a moins de X minutes
|
||||
|
|
Loading…
Reference in a new issue