/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#! /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
URL: http://troxa.com/comparacion-recursiva-de-directorios-en-linux.html