I have a folder containing a sequence of files whose names bear the form filename-white.png
. e.g.
images
arrow-down-white.png
arrow-down-right-white.png
...
bullets-white.png
...
...
video-white.png
I want to strip out the -white
bit so the names are simply filename.png
. I have played around, dry run with -n
, with the Linux rename
command. However, my knowledge of regexes is rather limited so I have been unable to find the right way to do this.