Re: grep

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



Hi Silvio,

    $ grep ^ */*
    de/1.md:date: 2019-10-10
    de/2.md:date: 2019-10-12
    de/3.md:date: 2019-10-14
    de/4.md:date: 2019-10-16
    en/1.md:date: 2019-10-10
    en/2.md:date: 2019-10-12
    en/3.md:date: 2019-10-14
    en/4.md:date: 2019-10-16
    fr/4.md:date: 2019-10-16
    ru/3.md:date: 2019-10-14
    ru/4.md:date: 2019-10-16
    $
    $ grep -hm1 '^date:' */* | 
    > sort -Vu |
    > while read -r d; do 
    >     for l in ??; do
    >         fgrep -qrx "$d" $l || echo "$d $l"
    >     done
    > done |
    > sed 's/^date: //' |
    > sort
    2019-10-10 fr
    2019-10-10 ru
    2019-10-12 fr
    2019-10-12 ru
    2019-10-14 fr
    $

-- 
Cheers, Ralph.



[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