Return to Snippet

Revision: 27612
at June 17, 2010 17:34 by alejandrosuch


Initial Code
#! /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

Initial URL
http://troxa.com/comparacion-recursiva-de-directorios-en-linux.html

Initial Description

                                

Initial Title
Recursive dir comparison

Initial Tags

                                

Initial Language
Bash