<div style="margin-left: 40px;">Hope everyone is having a great weekend. <br> &nbsp;When I execute:<br> </div> <br> $: perl -ni.bak -e 'print unless 1..1' my_log.txt'<br> <br> I get:<br> <br> can't rename my_log.txt to my_log.txt.bak: Permission denied, skipping file.<br> <br> However, the permissions for my_log.txt and my_log.txt.bak are:<br> <br> -rwxrwxrwx root root<br> <br> As you might expect, if run the command as root it works.&nbsp; Is there a way to modify it so it works without changing the file ownership?<br> <br> Any help would be greatly appreciated.<br> <br> Richard<br> <BR><BR>Your beliefs become your thoughts.  Your thoughts become your words.  Your words become your actions.  Your actions become your habits.  Your habits become your values.  Your values become your destiny.  -- Mahatma Gandhi