From: Lukasz S. <admin-flexbackup@k.telmark.waw.pl> - 2005-03-07 17:27:22
|
Greetings all. Here you are a script to get list of "stock" files for Slackware. sed -e '1,/^FILE LIST:/d' \ -e '/^install/d' \ -e '/^etc/d' \ -e '/\/$/d' /var/log/packages/* Let me descreibe each expression. #1 Jump a package description #2 The "install" directory is always removed by pkginstall just after the inslation so it doesn't mean anythig. #3 Skip configuration files, we always need them on the tape. #4 Skip directories, all descriptions are kept in the /var/log/packages directory, one file per package. Files look like this one ---workbone-2.40-i386-3--- PACKAGE NAME: workbone-2.40-i386-3 COMPRESSED PACKAGE SIZE: 11 K UNCOMPRESSED PACKAGE SIZE: 30 K PACKAGE LOCATION: workbone-2.40-i386-3.tgz PACKAGE DESCRIPTION: workbone: workbone (text-based CD player) workbone: workbone: WorkBone is a simple interactive tool for for playing audio CDs f= rom workbone: the Linux console. workbone: workbone: workbone: workbone: workbone: workbone: workbone: FILE LIST: =2E/ usr/bin/ usr/bin/workbone usr/doc/ usr/doc/workbone-2.40/ usr/doc/workbone-2.40/README usr/man/ usr/man/man1/ usr/man/man1/workbone.1.gz install/ install/slack-desc -------------------------- Best regards. --=20 |/ |_, _ .- --, Ju=BF z ka=BFdej strony pe=B3zn=B1, potworne =BF= =B1dze |__ |_|. | \ |_|. ._' /_. B=EAd=EA uprawia=B3 nierz=B1d, za pieni= =B1dze |