I have taken pictures with 2 webcams for a timelapse video.
The PC and cameras had a few problems along the way....
So I have 2 folders with 2300+ images in each, but they don't match 100%.
So I need to run a clean up job.
The pictures are all named the same way, and pictures taken at the same time has the same name in both folders (but different size content and time stamp)
All of my files are put into PIXLeft and PIXRight They are named in the following way: "2013-01-11-08:58:28.jpg" if the process was ok at the time there will be a picture of that name in each folder.
I need to clean out the pictures that dosn't have a name match in the other folder.
I've been eksperimenting with code like this:
- Code: Select all
ls ./PIXLeft > left
ls ./PIXRight > right
diff -s left right
It does give me a list of differences, but how do I move all the files that dosn't have a match to a new folder?