I have files which has name as following:
P50_FR_8_q2_scrolls.csv
Here the value 50 and 8 needs renaming & The results should be something like:
P21_FR_3_q2_scrolls.csv
I tired few similar to rename 's/\d{3}(\d{*})\.csv$P21_$1.csv' *.csv
But no luck. (It seems I am really bad at Linux regex)
The value 50->21 and 8->3 is something that i know. But the starting value and ending value is not always in same digit size.