[wiki] [sites] [dmenu](run-recent) fixed bug || ananthu

From: <git_AT_suckless.org>
Date: Fri, 28 Aug 2020 07:10:42 +0200

commit 3b8e1d672474f842ff111a03da9a9967e0da7f05
Author: ananthu <ask1234560_AT_gmail.com>
Date: Fri Aug 28 10:38:44 2020 +0530

    [dmenu](run-recent) fixed bug

diff --git a/tools.suckless.org/dmenu/scripts/run-recent b/tools.suckless.org/dmenu/scripts/run-recent
index 7c81bc6f..6d57392d 100755
--- a/tools.suckless.org/dmenu/scripts/run-recent
+++ b/tools.suckless.org/dmenu/scripts/run-recent
_AT_@ -7,7 +7,7 @@ cache="$cachedir/dmenu_recent"
 
 touch "$cache"
 
-most_used=$(sort "$cache" | uniq -c | sort -r | cut -d" " -f8)
+most_used=$(sort "$cache" | uniq -c | sort -rh | awk -F" " '{print $2}')
 run=$((echo "$most_used"; dmenu_path | grep -vxF "$most_used") | dmenu -i "$_AT_")
 ([ -z "$run" ] || echo "$run"; head -n 99 "$cache") > "$cache.$$"
 mv "$cache.$$" "$cache"
Received on Fri Aug 28 2020 - 07:10:42 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 28 2020 - 07:12:45 CEST