Hello,
I have a set of files with characters in parenthesis, the thing is there's only the opening parenthesis for each one
Example :
I'd like to go from this :
filename1 (abc (defgh (ijk (lmnopq (rs.txt
filename2 (hijklmno (pqrs (tuv (wxyztxt
filename3 (ab (cdefg (hijk (lm.txt
To this :
filename1.txt
filename2.txt
filename3.txt
I need to get rid of the opening parenthesis and the characters that come after it. There's always a space before each opening parenthesis.
Any help is welcome,
thanks