TipsShell: Simplifier commande awk

This commit is contained in:
Alexis Ben Miloud--Josselin 2024-03-11 10:43:58 +01:00
parent 8a951f899e
commit 606cd79c2f

View file

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