jpc@fctunl.rccn.pt (Jose Pina Coelho) (09/05/90)
I wrote this one:
It
1 - finds the files that contain the archive
2 - sorts them by part number
3 - takes just the names
4 - creates the directory to hold the archive
5 - extracts the uu part
6 - uudecodes
Have fun!
------------------------------------------------------
#!/bin/sh
ARCHIVE=$1
SEARCH='^Archive-name: '$ARCHIVE'/part'
echo Searching for: $SEARCH
FILES=`grep '^Archive-name:[ \t]'$ARCHIVE'/part' /usr/spool/news/comp/binaries/ibm/pc/* | sort +1 | gawk -F : '{print $1}' -`
mkdir $ARCHIVE
cd $ARCHIVE
sed '/^END/,/^BEGIN/d' $FILES | uudecode
------------------------------------------------------
--
Jose Pedro T. Pina Coelho | BITNET/Internet: jpc@fctunl.rccn.pt
Rua Jau N 1, 2 Dto | UUCP: jpc@unl.uucp
1300 Lisboa, PORTUGAL | ARPA: jpc%hara.fctunl.rccn.pt@mitvma.mit.edu
Home phone: (+351) (1) 640767
- If all men were brothers, would you let one marry your sister ?