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 from
workbone: the Linux console.
workbone:
workbone:
workbone:
workbone:
workbone:
workbone:
workbone:
FILE LIST:
./
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.
-- 
|/       |_,  _   .-  --,  Już z każdej strony pełzną, potworne żądze
|__ |_|. | \ |_|. ._' /_.         Będę uprawiał nierząd, za pieniądze

Attachment: pgpIreYOQ4a5U.pgp
Description: PGP signature

Reply via email to