From e747879e0ea46fdfb748a90b91ac11cd16dca7f5 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 25 Jul 2016 00:07:58 +0200 Subject: mless: more robust id detection --- mless | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mless') diff --git a/mless b/mless index 384794a..6111a60 100755 --- a/mless +++ b/mless @@ -26,7 +26,7 @@ function so(s) { return sprintf("\033[1m%s\033[0m", s) } } mnums() { - mscan "$@" 2>/dev/null | awk '/^...[^ ]/{print $2}' + mscan "$@" 2>/dev/null | awk '$2 ~ /^[0-9]*$/ { print $2 }' } if [ "$1" = --filter ]; then -- cgit 1.4.1