This should be simple but I just cannot get the syntax correct to remove the closing parenthesis.
I have a collection of files named as follows:
The intervening spaces are a problem and also the parenthesis wrapping the serial number.
This is the sed construct that I'm trying to use:
. . .and effectively produces this result:
I have a collection of files named as follows:
'EMFD Plane Crash Oct 26 2011 (39).JPG'
The intervening spaces are a problem and also the parenthesis wrapping the serial number.
This is the sed construct that I'm trying to use:
sed '/ Plane Crash Oct 26 2011 (/s//-/'
. . .and effectively produces this result:
'EMFD-39).JPG'
I need to strip-out the closing parenthesis. Can anyone with more regex experience than me suggest a solution?