home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: misc.test
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!umn.edu!lynx!ozone!secret!hidden!Unknown.com!WhoKnows
- From: WhoKnows
- Subject: - test (1/1)
- Message-ID: <1992Dec29.155750.1@Unknown.com>
- Date: Tue, 29 Dec 92 22:57:54 GMT
- Organization: SSS (Society for Strong Secrecy)
- Originator: WhoKnows@Unknown.com
- Sender: WhoKnows@Unknown.com (Who knows what evil lurks in the hearts of men?)
- Nntp-Posting-Host: shadow.Unknown.com
- Keywords: anonymous post
- Approved: The Shadow
- Originator: ajbahm@triton.unm.edu
- Lines: 102
-
- test is a uuencoded
-
- This description and the associated part contains the uuencoded form
- of test.
-
- #--------shell begin here-------
- #! /bin/sh
- # NOTE: THIS IS *NOT* A "shar" FILE!!
- # ALL INFORMATION BETWEEN "cut here" PAIRS MAY BE EXTRACTED BY ANY
- # MEANS YOU DESIRE, INCLUDING BY EXECUTING THIS SCRIPT.
- # test, part 1/1
- # Concatenate test*.uu files, pipe to uudecode to create 'test'.
- echo "Extracting test1.uu"
- if [ `echo $0 | sed -e 's?.*/??'` = "sh" ]
- then
- echo "Using this script as shell standard input disables automatic"
- echo " truncation detection. Truncation is likely if the next message"
- echo " isn't 'test1.uu extracted successfully!'..."
- else
- fend=`grep "End of" $0 | sed -e '/^\ \ fend/d'`
- if [ "$fend" = "" ]
- then
- echo "ERROR: test part 1 is truncated!"
- exit 1
- fi
- fi
- sed -e '/^BEGIN/d' -e '/^END/d' << \EndOfUUSection > test1.uu
- BEGIN --- CUT HERE --- Cut Here --- cut here ---
- begin 600 test
- A"CQT87 ^(#QT87 ^("!)<R!T:&ES('1H:6YG(&]N/PH*
-
- end
- END --- CUT HERE --- Cut Here --- cut here ---
- EndOfUUSection
- wcSize=`wc -lwc test1.uu | awk '{ printf "%s %s %s", $1, $2, $3 }'`
- if [ "$wcSize" = "4 7 67" ]
- then
- echo "test1.uu extracted successfully!"
- else
- echo "ERROR IN test1.uu EXTRACTION!"
- echo "Expecting sum of '4 7 67', got ${wcSize}..."
- exit 1
- fi
- if [ `echo test*.uu | wc -w` -eq 1 ]
- then
- echo "All uuencoded parts of test extracted, uudecoding..."
- cat test*.uu > test.UU
- test -f test.UU
- fileErr=$?
- if [ $fileErr -eq 0 ]
- then
- wcSize=`wc -lwc test.UU | awk '{ printf "%s %s %s", $1, $2, $3 }'`
- if [ "$wcSize" = "4 7 67" ]
- then
- cat test.UU | uudecode
- extrErr=$?
- if [ $extrErr -eq 0 ]
- then
- test -f test
- fileErr=$?
- if [ $fileErr -eq 0 ]
- then
- wcSize=`wc -lwc test | awk '{ printf "%s %s %s", $1, $2, $3 }'`
- if [ "$wcSize" = "3 6 33" ]
- then
- echo "test extracted successfully!"
- rm test*.uu test.UU
- exit 7
- else
- echo "ERROR IN test filesum!"
- echo "Expecting sum of '3 6 33', got ${wcSize}..."
- exit 1
- fi
- else
- echo "ERROR: File test doesn't exist!!"
- exit 1
- fi
- else
- echo "ERROR: In extraction of test - examine test.UU..."
- exit 1
- fi
- else
- echo "ERROR IN test.UU filesum!"
- echo "Expecting sum of '4 7 67', got ${wcSize}..."
- exit 1
- fi
- else
- echo "ERROR: File test.UU doesn't exist!!"
- exit 1
- fi
- fi
- exit 0
- #
- # End of 'test1.uu'
- #
- #--------shell end here-------
- ('wc -lwc test1' should be '4 7 67'...)
- ('wc -lwc test' should be '3 6 33'...)
-
- >>> Processed using xmitBin ver. 1.8 by D. Jim Howard <<<
-
-
-