TIMFOX123
asked on
in redhat, waht is an easy way to rotate a file ?
i have a file
host1
host2
host3
after I process host1,
I want the file to read:
host2
host3
host1
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.
thx
host1
host2
host3
after I process host1,
I want the file to read:
host2
host3
host1
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.
thx
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thx
ASKER