I have this: (_1.png for every prefix will exist)$ ls001_0001_1.png001_0001_2.png001_0001_4.png001_0002_1.png001_0002_2.png001_0002_3.png...003_0717_1.png003_0717_3.pngAnd I want to do this:$ ls *001_0001:1.png2.png4.png001_0002:1.png2.png3.png...003_0717:1.png3.pngSo I tried: (yes it failed)$ rename 's/_([0-9].png)/\/$1/' *.pngI can deal with for and mkdir and ${} friends, but I'm finding more elegant way. is it possible?
rename(1): directory creation?
rename