I have an application which write to a file. Before I run the application, I would like to rotate the file. In others move file.n to file.n+1 file to file.1.I can write a script to do this, but I was wondering if there is a simpler way to do this?
Rotating a file
files;rename