Can you help me figure out how to write a awk / ksh or any unix script for this:
Eg: File to move: filename0001.out
Listing of files found at the location:
filename0001.out
filename0002.out
filename0003.out
Result:
filename0001.out
filename0002.out
filename0003.out
filename0004.out <-The new file moved in this location should get moved with the next avaiable sequence number.
TIA,
Eg: File to move: filename0001.out
Listing of files found at the location:
filename0001.out
filename0002.out
filename0003.out
Result:
filename0001.out
filename0002.out
filename0003.out
filename0004.out <-The new file moved in this location should get moved with the next avaiable sequence number.
TIA,