I have a number of variable length files, where I need to remove a 2 digit numeric value and the following "-"
This is what I have:
filenamealpha-01-02-hfjdksahfds
filenamebravo-02-02-fdsfadsfds
filenamecharlie-03-02-hgfhgfg
filenamedelta-04-02-hgfhersdf
I want to remove the 02- from each file, giving me below:
filenamealpha-01-hfjdksahfds
filenamebravo-02-fdsfadsfds
filenamecharlie-03-hgfhgfg
filenamedelta-04-hgfhersdf
I would normally do this by replacing "02-" with a space, effectively removing it.
The only problem with this particular example, is that the "02-" that I am removing, appears twice in some of the files. (I only want to remove the one occurrence that appears later in the file).
I am wondering if there is a way I can specify only replace the 02- that is followed by an alphabetic field.
An alphabetic wildcard would do the job.
Any suggestions (or a completely different method) would be welcomed.