Created
June 22, 2023 21:58
-
-
Save maxsupermanhd/e4ff0db8d84ab45c7c39b4989837e5fd to your computer and use it in GitHub Desktop.
Script to diff all files from 2 folders and make a changelist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 2 ]; then | |
echo "Usage: $0 <compare from> <compare to>" | |
exit | |
fi | |
CFROM=$1 | |
CTO=$2 | |
FNAME=diff_$1:$2.txt | |
echo "Comparing $1 (from) to $2 (to)" > $FNAME | |
for i in `ls $CFROM`; do | |
echo "################## Changes to: $i (- from + to) ##################" >> $FNAME | |
~/jd $CFROM/$i $CTO/$i >> $FNAME | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment