/ Published in: Bash
URL: http://troxa.com/comparacion-recursiva-de-directorios-en-linux.html
Expand |
Embed | Plain Text
#! /bin/bash # # cmpdir - [email protected], 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
You need to login to post a comment.
