|
From: Edwar C. <edw...@gm...> - 2016-08-30 06:50:35
|
Lacrocivious: Your method works wonderfully! I would probably never have figured it on my own. If this app is developed ever again something should be done about this, like a toggle or a relationship between -4 and 0, or make -4 the default as people usually want to change only the name part without affecting the extension, and also to prevent confusion (I also got weird results like duplicated or partially duplicated filenames but I was using positive numbers only) Zurd: That's what I ended up doing the first time because luckily all of the files had the same extension. But if this wasn't the case and different files had different extensions I wouldn't know later which files had which extensions, and to prevent this I would have to rename a bunch of files at a time by extension, e.g. first rename all jpgs, then rename all the pngs an so on which could be tedious and time consuming depending on how many different extensions are in the folder. Lacrocivious gave me a working solution above but I would still be interested in checking out the regex technique because I think I may need to use regular expressions in other renaming situations. I didn't see any documentation in gprename about regular expressions. Maybe you guys know the list of regexes that can be used on gprename? I noticed both of you sent your replies directly to me instead of a followup to the mailing list address. Maybe you didn't want others in the mailing list to see the replies (in that case sorry coz I sent this message to all) or maybe there are so few people in the mailing list it's ok to send directly to the members or maybe the mailing list doesn't working properly when replying to it. I don't know, should I do the same from now on? In any case thanks both, this app will be very useful from now on On 08/29/2016 09:08 PM, Zurd wrote: > > Hi, there is no way te keep the file extension. But after you have > succesfully remove both the extension and the characters that you want > to remove, you can easily add back the extension with a second step in > the software. > > If you're good with regex, you can probably do something there but it > will be overkill in my opinion. > > > On Aug 29, 2016 12:21 AM, "Edwar Cifuentes" <edw...@gm... > <mailto:edw...@gm...>> wrote: > > Hello, is this mailing list active? if so, I downloaded gprename to > remove some unnecessary characters from the end of the names of some > files, e.g. Myfile-g0t9j89.jpg > To remove these characters from the end of the file I'm using a > negative > number in "Delete between" and a big number in "and" (like 500) > I would think that to get "Myfile.jpg" I'd need to delete 7 characters > from the end, however I end up with Myfile-g0t9 instead because > gprename > it's also removing the extension and dot. > How do I tell gprename to leave the extension alone and only start > removing from the last character in the actual name. > Thanks > > ------------------------------------------------------------------------------ > _______________________________________________ > Gprename-users mailing list > Gpr...@li... > <mailto:Gpr...@li...> > https://lists.sourceforge.net/lists/listinfo/gprename-users > <https://lists.sourceforge.net/lists/listinfo/gprename-users> > |