I have a lot of photos that need to be renamed.
[Wedding] Happy Day_001 [February].jpg
[Mountain] Summer Camp_165 [May].jpg
[Beach] Music Fest_58 [August].jpg
I need all the square brackets to be removed. To do so, I found this & this.
Using sed
command as in those pages, the space before and after the brackets is still there. In my case, I want the text inside, space before & after, and the brackets itself to be removed.
Happy Day_001.jpg
Summer Camp_165.jpg
Music Fest_58.jpg
To remove [first]
& [last]
brackets, how can I do that with a sed
command?