in redhat, waht is an easy way to rotate a file ?
Posted on 2012-09-10
i have a file
after I process host1,
I want the file to read:
That way if I read off the first host name, process it, rotate it and then put the next host name at the top to process it.
Yes there is a reason I do not want to just use an array. Because this affects servers, I want to request to process one, request to process the second, request to process the third.