From 0d374a5f82b88177d2fdaf35d9c28080a8f35494 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 4 Nov 2025 16:37:44 +0000 Subject: awk refactor of my scripts awk is OP man - so easy to use and does a bunch of stuff all at once without having to rely on multiple pipes. It comes with essentially every distribution so you'll always have access to it. --- Scripts/.local/scripts/qscope | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Scripts/.local/scripts/qscope') diff --git a/Scripts/.local/scripts/qscope b/Scripts/.local/scripts/qscope index 0ae22cb..bd62e3a 100755 --- a/Scripts/.local/scripts/qscope +++ b/Scripts/.local/scripts/qscope @@ -1,3 +1,3 @@ #!/usr/bin/env sh -pgrep ".*" -l | dmenu -p "Choose process: " | sed "s/\\([0-9]*\\).*/\1/g" | xargs kill -9 $1 +pgrep ".*" -l | dmenu -p "Choose process: " | awk '{ print $1 }' | xargs kill -9 $1 -- cgit v1.2.3-13-gbd6f