Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- REPORT_PATH=$HOME/Desktop/LIFEBUOY/REPORTS
- BACKUP_PATH="/Volumes/BRO FILMS-LIBUOY SHAMPOO/LIFEBUOY/19-DESEMBER-2014/RAW"
- CARD_NAME=$2
- MEDIA_NAME=$1
- echo "REPORT_PATH = $REPORT_PATH"
- echo "BACKUP_PATH = $BACKUP_PATH"
- mkdir -pv "$REPORT_PATH/$CARD_NAME"
- echo "Creating Media MD5 Checksums..."
- find "/Volumes/$MEDIA_NAME" -type f -name "*.R3D" -exec md5 '{}' > "$REPORT_PATH/$CARD_NAME/media-md5.txt" \;
- echo "Creating Backup MD5 Checksums..."
- find "$BACKUP_PATH/$CARD_NAME" -type f -name "*.R3D" -exec md5 '{}' > "$REPORT_PATH/$CARD_NAME/backup-md5.txt" \;
- MEDIA_MD5=$(cat "$REPORT_PATH/$CARD_NAME/media-md5.txt" | cut -d'=' -f2 | sed s/\ //)
- echo $MEDIA_MD5
- for token in $MEDIA_MD5; do
- grep $token "$REPORT_PATH/$CARD_NAME/backup-md5.txt"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement