permission denied when sed in place edit in mingw

后端 未结 4 1875
不思量自难忘°
不思量自难忘° 2021-02-06 22:19

I\'m using mingw.

  $ sed -i \"s/a/b/\" test.txt
  sed: preserving permissions for `./sed003480\': Permission denied

I can touch/rm files in cu

4条回答
  •  感情败类
    2021-02-06 22:50

    It's caused by Windows security settings.

    Open the folder's Properties settings from the context menu. In the Security tab, click Edit, press Add... in the pop-up window and add your user to the list, check Full Control in the Allow column. Press OK twice to apply the changes.

提交回复
热议问题