diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-25 00:07:58 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-25 00:07:58 +0200 |
commit | e747879e0ea46fdfb748a90b91ac11cd16dca7f5 (patch) | |
tree | cc0fcc6ea843c6d0f79faf9ea14e9a635a68da5d /mless | |
parent | 39bae697aae28a037b87994baa52dfdd12ec761a (diff) | |
download | mblaze-e747879e0ea46fdfb748a90b91ac11cd16dca7f5.tar.gz mblaze-e747879e0ea46fdfb748a90b91ac11cd16dca7f5.tar.xz mblaze-e747879e0ea46fdfb748a90b91ac11cd16dca7f5.zip |
mless: more robust id detection
Diffstat (limited to 'mless')
-rwxr-xr-x | mless | 2 |
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 |