I know there are lots of such questions, but I couldn't find one (or a combination of several), which describes the things I want to do. I think I need to use regular expressions, but I am not very good with that. I use zsh. I have a folder with files, which I want to rename:
I want the files
challenge3.rb, etc. to be renamed to
task1.rband similar must be renamed to
sample_spec_c2.rbetc. must be renamed to
So I guess I need some combination of regular expressions and iteration, but I don't know how to write the bash script.