I've got a question that I hope one of you Bash shell script gurus can
answer: given a filename that contains a number, how does one create a new
filename with the number incremented by one?
An example. Suppose I have a file with this name:
filename1234.txt
My goal in this case would be to parse this filename such that the number
would be extracted then incremented, and a new name, containing the
incremented number would be created. In this case, I would seek to create
this filename:
filename1235.txt
Can someone advise me on how this can be done in Bash?
Thanks.
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list