I tried to perform perl inline edit to replace a string.
The file I tried to modify is shared through NAS drive through different platforms (UNIX & WINDOWS).
But, I can pretty much edit the file using VI editor in UNIX.
When I try the command it gives me the following error,
"Can't do inplace edit on test.txt: Not owner."
The commands I tried were,
perl -pi -e 's/CLAD/BKOC/g' test.txt
perl -pi.bak -e 's/CLAD/BKOC/g' test.txt
Are inline edits possible only for the owner of the file, even though groups and others have full write access?
I tried to search a resolution, but with no luck.
Could anyone please advise me?