From: an1362@anon.penet.fi (The Raven)
Subject: - test (1/1) "TEST"
Organization: Anonymous contact service
X-Anonymously-To: alt.test
Date: Fri, 8 Jan 1993 15:04:07 GMT



	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 644 test
55&AI<R!I<R!J=7-T(&$@=&5S= H*
 
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 6 51" ]
then
  echo "test1.uu extracted successfully!"
else
  echo "ERROR IN test1.uu EXTRACTION!"
  echo "Expecting sum of '4 6 51', 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 6 51" ]
    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" = "2 5 21" ]
          then
            echo "test extracted successfully!"
            rm test*.uu test.UU
            exit 7
          else
            echo "ERROR IN test filesum!"
            echo "Expecting sum of '2 5 21', 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 6 51', 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 6 51'...)
('wc -lwc test' should be '2 5 21'...)

	>>> Processed using xmitBin ver. 1.8 by D. Jim Howard <<<



Here

-------------------------------------------------------------------------
To find out more about the anon service, send mail to help@anon.penet.fi.
Due to the double-blind system, any replies to this message will be anonymized,
and an anonymous id will be allocated automatically. You have been warned.
Newsgroups: alt.test