>>>>> Oleksandr Gavenko <[email protected]> writes:

[…]

 > Приблизительное можно зделать так:

 > $ for f in /var/cache/apt/apt-file/*.gz; do \
 >     if zcat $f | grep $PKG >/dev/null; then \
 >       echo $f; \
 >     fi; \
 >   done

        Проще:

$ zgrep -l $PKG /var/cache/apt/apt-file/*.gz 

        Лучше:

$ zgrep -lF -- "$PKG" /var/cache/apt/apt-file/*.gz 

[…]

-- 
FSF associate member #7257


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Ответить