Comparacion recursiva de directorios en linux
Comparar dos directorios recursivamente:
#! /bin/bash
#
# cmpdir - juanayup@gmail.com, 2007, GPLv2
#
# cmpdir <dir1> <dir2>
[ -z "$2" ] && { echo “Usage: $SELF <dir1> <dir2>”; exit 0; }
SRC=”$1″
DST=”$2″
(cd “$SRC”;find -type f)|while read i;do cmp “$SRC/$i” “$DST/$i”; done
“no hase falta disssiir nada mas” ;)
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments
No comments yet.
Leave a comment