From: Paul Hänsch Date: Tue, 17 Jul 2018 23:06:13 +0000 (+0200) Subject: WoRg arounT GNU greps FAULTY binary file dTection! AAAAARRGHH!!!! X-Git-Url: http://git.plutz.net/?p=serve0;a=commitdiff_plain;h=8d556a468ad07e58f6e06397e558e0b353f8c8d9 WoRg arounT GNU greps FAULTY binary file dTection! AAAAARRGHH!!!! --- diff --git a/indexmeta.sh b/indexmeta.sh index 2e4e74f..0c5d7d9 100644 --- a/indexmeta.sh +++ b/indexmeta.sh @@ -54,8 +54,8 @@ meta_info(){ meta="${file%/*}/.index/meta" if [ -d "${meta%/meta}" ]; then - grep -m1 -F " $(meta_name "$file")" "$meta" \ - | grep -xE '[0-9]+ [0-9]+ [0-9]+ tags=[^ ]* comment=[^ ]* .+' \ + grep -aF " $(meta_name "$file")" "$meta" \ + | grep -m1 -xE '[0-9]+ [0-9]+ [0-9]+ tags=[^ ]* comment=[^ ]* .+' \ || meta_file "$file" else printf '0\t0\t0\ttags=\tcomment=\t\r'