grep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello, 

I have a question about grep, okay yes is not direct Arch but I not find
a information and here on list sure some profis with grep. 

The folder structure:

content/de/blog/*.md
content/fr/blog/*.md
content/en/blog/*.md
content/ru/blog/*.md

To know which articles I have translate I grep through dates:

grep -e "2019-10-1" content/blog/de (for the dates between 10 and 19)

I become:

grep -e "2019-10-1" content/de/blog/*
content/de/blog/file1.md:date: 2019-10-10
content/de/blog/file2.md:date: 2019-10-12
content/de/blog/file3.md:date: 2019-10-14
content/de/blog/file4.md:date: 2019-10-16

Now is my question, 

How can I do the same in the other folders and all those that 
exist with the same date are hidden and when no file is present give out
the file which is missing in other folders sort by date. The name of
file is sure other, but the date is ever the same.

grep -e "2019-10-1" content/en/blog/*
No output > all files translated

grep -e "2019-10-1" content/fr/blog/*
content/de/blog/file4.md:date: 2019-10-16 > file is missed

grep -e "2019-10-1" content/ru/blog/*
content/de/blog/file3.md:date: 2019-10-14 > file is missed
content/de/blog/file4.md:date: 2019-10-16 > file is missed

Grep to the first folder (de) as a comparison to the others (en,fr,ru).

I had try it with diff but it want not work. 

Would be great there is a idea. 

Thank you for help.

Silvio

Attachment: pgpwfRLfbLqHB.pgp
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux