mrimagepueblo
Programmer
I have tried figuring out some of the similar posts but can't seem to match up the examples with what I need.
I want to create a shell script that will automatically rename a bunch of graphics files cutting off the last part of the filename as their is no pattern to match on without a bunch of if statements.
The filenames for example are
5568012_101_12.jpg
5652901_101_12.jpg
5890390_101_13.jpg
5992313_101_71.jpg
I simply want the files to be renamed as
5568012.jpg
5652901.jpg
5890390.jpg
5992313.jpg
thanks a bunch in advance
I want to create a shell script that will automatically rename a bunch of graphics files cutting off the last part of the filename as their is no pattern to match on without a bunch of if statements.
The filenames for example are
5568012_101_12.jpg
5652901_101_12.jpg
5890390_101_13.jpg
5992313_101_71.jpg
I simply want the files to be renamed as
5568012.jpg
5652901.jpg
5890390.jpg
5992313.jpg
thanks a bunch in advance