From 606cd79c2fd394942b75a5108c494cf88c267b90 Mon Sep 17 00:00:00 2001 From: Alexis Ben Miloud--Josselin Date: Mon, 11 Mar 2024 10:43:58 +0100 Subject: [PATCH] TipsShell: Simplifier commande awk --- TipsShell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TipsShell.md b/TipsShell.md index 5a443070..b58e3d9c 100644 --- a/TipsShell.md +++ b/TipsShell.md @@ -551,7 +551,7 @@ pgrep -u | 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