Return to Snippet

Revision: 6739
at June 12, 2008 09:20 by Juanje


Updated Code
dirs=$(for dir in $(ls); do echo -n "$dir " ; done)

for (( i=0 ; i<${#dirs[@]}-1; i++ ))
do 
        diff -ru ${dirs[$i]} ${dirs[(($i+1))]} > ${dirs[(($i+1))]}_changes.patch
done

Revision: 6738
at June 12, 2008 07:58 by Juanje


Initial Code
dirs=$(for dir in $(ls); do echo -n "$dir " ; done)

for (( i=0 ; i<${#dirs[@]}-1; i++ ))
do 
        diff -ru ${dirs[$i]} ${dirs[(($i+1))]} > ${dirs[(($i+1))]}_changes.patch
done

Initial URL

                                

Initial Description

                                

Initial Title
Patch between different directories

Initial Tags
Bash, c

Initial Language
Bash