Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1


Ratings: (0)|Views: 3 |Likes:
Published by dty001

More info:

Published by: dty001 on Nov 09, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less





#!/bin/sh# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh# Bzcmp/diff wrapped for bzip2,# adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.# Bzcmp and bzdiff are used to invoke the cmp or the diff pro-# gram on compressed files. All options specified are passed# directly to cmp or diff. If only 1 file is specified, then# the files compared are file1 and an uncompressed file1.gz.# If two files are specified, then they are uncompressed (if# necessary) and fed to cmp or diff. The exit status from cmp# or diff is preserved.PATH="/usr/bin:/bin:$PATH"; export PATHprog=`echo $0  sed 's.*/'`case "$prog" in*cmp) comp=${CMP-cmp} ;;*) comp=${DIFF-diff} ;;esacOPTIONS=FILES=for ARGdocase "$ARG" in-*)OPTIONS="$OPTIONS $ARG";;*)if test -f "$ARG"; thenFILES="$FILES $ARG"elseecho "${prog}: $ARG not found or not a regular file"exit 1fi ;;esacdoneif test -z "$FILES"; thenecho "Usage: $prog [${comp}_options] file [file]"exit 1fiset $FILESif test $# -eq 1; thenFILE=`echo "$1"  sed 's/.bz2$//'`bzip2 -cd "$FILE.bz2"  $comp $OPTIONS - "$FILE"STAT="$?"elif test $# -eq 2; thencase "$1" in*.bz2)case "$2" in*.bz2)F=`echo "$2"  sed 's.*/;s.bz2$'`tmp=`mktemp "${TMPDIR:-/tmp}"/bzdiff.XXXXXXXXXX`  {echo 'cannot create a temporary file' >&2exit 1}bzip2 -cdfq "$2" > "$tmp"bzip2 -cdfq "$1"  $comp $OPTIONS - "$tmp"STAT="$?"/bin/rm -f "$tmp";;

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->