about summary refs log tree commit diff
path: root/mless
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-25 00:07:58 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-25 00:07:58 +0200
commite747879e0ea46fdfb748a90b91ac11cd16dca7f5 (patch)
treecc0fcc6ea843c6d0f79faf9ea14e9a635a68da5d /mless
parent39bae697aae28a037b87994baa52dfdd12ec761a (diff)
downloadmblaze-e747879e0ea46fdfb748a90b91ac11cd16dca7f5.tar.gz
mblaze-e747879e0ea46fdfb748a90b91ac11cd16dca7f5.tar.xz
mblaze-e747879e0ea46fdfb748a90b91ac11cd16dca7f5.zip
mless: more robust id detection
Diffstat (limited to 'mless')
-rwxr-xr-xmless2
1 files changed, 1 insertions, 1 deletions
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