[arch-general] grep

siefke_listen at web.de siefke_listen at web.de
Tue Oct 15 14:27:18 UTC 2019


Hello, 


> for file in content/en/blog/*.md; do
>   basefile=$(basename "$file" .md)
>   if [[ ! -e content/de/blog/"$basefile" ]]; then
>     echo "German is missing $basefile";
>   fi;
> done;
> 
> Perhaps?

Basename will not work cause the file name have different names in the
languages blog folder. Only date is what can be used at all because this
stand in header of every markdown field. 
 
> Maybe instead you're saying that the dates present in one language should
> also be present in another language? That would be a pretty different
> solution with which I'm happy to help if you indicate such a desire.

Yes the dates are ever present. 

-- 
Thank you & Nice day

Silvio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 829 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20191015/2ff2aea0/attachment.sig>


More information about the arch-general mailing list