one liner to simply check for pictures and video in my pictures home directory

I used this today to just check and make sure what files I can remove off my sdcard. I just simply checked the filesize on the files and make sure it was the same in my Pictures directory in my home directory. If I wanted to be very fancy, I could have done a sha1sum on the files to make sure the hashes were completely the same.

/media/ryan/8765-4321/DCIM/146EKZi8$ for a in `ls`; do ls -l $a; \
find /home/ryan/Pictures -name $a  -exec ls -l '{}' \; ; done &> /tmp/kodak

This entry was posted in software and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *