X-Git-Url: http://git.plutz.net/?p=serve0;a=blobdiff_plain;f=indexmeta.sh;h=0c5d7d959ba2d289f2079b57921aefc2f1ff91e3;hp=2e4e74f16494305ce92f77578208447096e1b192;hb=8d556a468ad07e58f6e06397e558e0b353f8c8d9;hpb=4164c65ab3e3905ac5ee4d7b5356aa4568033b2b 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'