Hi everyone
I am new to linux and have a question which Google has not been able to answer.
I have a folder with a few files in:
index.html
index1.html
index2.html
Etc
The number of files will vary. The issue I have is that I want to rename index.html to index1.html after renaming index1.html to index2.html, etc and take the highest numbered file "indexX.html" and rename it to index.html.
Anyone have any ideas?
Im running Raspbian.
Thanks for any help in advance
I am new to linux and have a question which Google has not been able to answer.
I have a folder with a few files in:
index.html
index1.html
index2.html
Etc
The number of files will vary. The issue I have is that I want to rename index.html to index1.html after renaming index1.html to index2.html, etc and take the highest numbered file "indexX.html" and rename it to index.html.
Anyone have any ideas?
Im running Raspbian.
Thanks for any help in advance