Lines Matching +full:original +full:- +full:awk
1 #!/bin/sh -
6 #-
24 a=`du -k "$1" | awk '{ print $1 }'`
25 b=`du -k "$2" | awk '{ print $1 }'`
26 test $a -lt $b
29 # Check gzip integrity if the -t flag is specified
31 if test $tflag -eq 1; then
32 gzip -qt < "$1"
42 if test ! -e "$filez"; then
46 if test ! -f "$filez"; then
50 if test -e "$filegz" -a $fflag -eq 0; then
59 trap 'rm -f "$tmp"; exit 1' HUP INT QUIT PIPE TERM
62 if uncompress -f -c < "$filez" | gzip -f -c $gzipflags > "$tmp"; then
63 if test $kflag -eq 1 && smaller "$filez" "$tmp"; then
64 echo -n "$prog: $filez is smaller than $filegz"
66 rm -f "$tmp"
71 rm -f "$tmp"
75 # Try to keep the mode of the original file
76 if ! cp -fp "$filez" "$filegz"; then
81 if ! cp -f "$tmp" "$filegz" 2> /dev/null; then
83 rm -f "$filegz" "$tmp"
87 if ! touch -fr "$filez" "$filegz"; then
88 echo -n "$prog: warning: could not keep timestamp of "
91 rm -f "$filez" "$tmp"
94 rm -f "$tmp"
100 usage="usage: $prog [-ftv9K] file ..."
107 # -P flag is recognized to maintain compatibility, but ignored. Pipe mode is
113 v) gzipflags="-v $gzipflags";;
114 9) gzipflags="-9 $gzipflags";;
121 shift $((OPTIND - 1))
123 if test $# -eq 0; then
130 while test $# -ne 0; do