Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hello and thank you first off for reading my post.
I have ubuntu 7 and I have recently imported from about 5 different backups from several different computers on my home network photos using fstop photo manager.
This program if you have not used it can import photos from selected locations. I have selected all these backups because I am not sure which files are not double, triples etc of the same photo.
So once the import is done it places all the newly copied photos from the import into my ubuntu gnome home folder called "photos".
If there are double that are imported into the "photo" folder (which I should add. all photos imported are put into subfolders by date for example a photo from January 15, 2002 would be put into a folder /photo/2002/01/15/) these duplicates are renamed with a *-1.jpg, *-2.jpg, *-3.jpg etc. The '*'would be the original photos name in its place.
So here is my question...
How can I type a command that would go in and delete all files with the -1.jpg at the end of the files name or -2, -3 etc and in all the subdirectories or maybe move them into a single folder. I just need to get them out of there. The idea of scrolling through 10k of photos and deleting them all one by one sounds like NASTY work to me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.