mrimagepueblo
Programmer
I need to write a bash shell script to strip the first part of the filename in a directory of files.
The original filenames are
05-12345_1.jpg
05-12345_2.jpg
05-12345_3.jpg
06-56789_1.jpg
06-56789_2.jpg
06-56789_3.jpg
06-56789_4.jpg
etc.
I simply want to strip out the 05- or 06- whatever happens to be in the front, so the end results are:
12345_1.jpg
12345_2.jpg
12345_3.jpg
56789_1.jpg
56789_2.jpg
56789_3.jpg
56789_4.jpg
An awk statement would be preferred but I'm not really picky at this point.
The original filenames are
05-12345_1.jpg
05-12345_2.jpg
05-12345_3.jpg
06-56789_1.jpg
06-56789_2.jpg
06-56789_3.jpg
06-56789_4.jpg
etc.
I simply want to strip out the 05- or 06- whatever happens to be in the front, so the end results are:
12345_1.jpg
12345_2.jpg
12345_3.jpg
56789_1.jpg
56789_2.jpg
56789_3.jpg
56789_4.jpg
An awk statement would be preferred but I'm not really picky at this point.