I have around 200 filenames that I am trying to pull data from. The format is something along the lines of: filename(120516.1108).mp3 I am trying to pull the part before the "(" and also the part before the ".". Not all of the files have this format either so theres an extra challenge.
The output should be : "filename" "120516"
I am wanting to perform this operation in bash if at all possible. I am still learning and have very little experience in bash. Any explanations along with code is very welcome.