I have many files in folders and subfolders.
I need remove some chars (same position) from all filenames.
Example:
IMG-20230226-WA0002.jpg -> 20230226-WA0002.jpg
I think simple way is to use echo ${i:N:N}, so I did this.
for i in $(find . -type f); do mv "$i" "${i:5}; done
As I supposed, it shows me files with full path, so how can I do it correctly?
PS: And how can I do it for "string"? For example remove only string IMG- from files?
PS2: I don't want use rename command.
Thanks.