5

Bash Globbing Variable Substitution?

view full story
linux-howto

http://unix.stackexchange.com – I want to rename files using their existing name as a base for the new one. So if I can ls these files with ls blue*+(.png) I'd want to rename them something like mv blue$(*)+(.png) $(1).png except that doesn't work obviously. Is there syntax for these kind of variables in bash globbing or is there an easier way? (HowTos)