mrimagepueblo
Programmer
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. I can create the shell script just need the pattern to rename.
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
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