sed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why sed -i does not respect the w mode?


From: Peng Yu
Subject: Why sed -i does not respect the w mode?
Date: Wed, 28 Dec 2022 18:34:39 -0600

Hi,

I turned off w of test.txt. But it still can be changed by sed -i.
Should sed -i respect the w mode? Thanks.

$ echo a >test.txt
$ chmod -w test.txt
$ sed -i 's/a/A/' test.txt
$ cat test.txt
A

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]