From: Siraaj Khandkar Date: Sat, 22 Apr 2023 22:43:12 +0000 (-0400) Subject: Fix record start pattern X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=88f8cf208bcf23171d40399ea2fc8337ddba3f89 Fix record start pattern to avoid whitespace rather than guessing what the not-space could be. --- diff --git a/home/bin/p b/home/bin/p index 507d578..0f7eb72 100755 --- a/home/bin/p +++ b/home/bin/p @@ -13,7 +13,7 @@ find() { ' BEGIN {_s = tolower(_s)} - /^[a-zA-Z]/ && tolower($1) ~ _s && NF >= 2 { + /^[^ \t]/ && tolower($1) ~ _s && NF >= 2 { n++ s = $1 p = $NF