Changeset 172 in lab for trunk/TipAndDoc/.bin/cmpdir
- Timestamp:
- Oct 4, 2012 6:52:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TipAndDoc/.bin/cmpdir
r171 r172 15 15 echo "Only in '$2': '$3'" >&2 && exit 16 16 [ -f "$1/$3" ] && [ -d "$2/$3" ] && 17 echo "'$1 ' is a regular file but '$2' is a directory" >&2 && exit17 echo "'$1/$3' is a regular file but '$2/$3' is a directory" >&2 && exit 18 18 [ -d "$1/$3" ] && [ -f "$2/$3" ] && 19 echo "'$1 ' is a directory but '$2' is a regular file" >&2 && exit19 echo "'$1/$3' is a directory but '$2/$3' is a regular file" >&2 && exit 20 20 21 21 cmp -s "$1/$3" "$2/$3" || echo "$1/$3" "$2/$3" are differ >&2
Note: See TracChangeset
for help on using the changeset viewer.