Skip to content
This repository has been archived by the owner on Aug 22, 2020. It is now read-only.

Permissions stripped during sed operation #43

Open
mjpitz opened this issue May 2, 2019 · 0 comments
Open

Permissions stripped during sed operation #43

mjpitz opened this issue May 2, 2019 · 0 comments

Comments

@mjpitz
Copy link
Member

mjpitz commented May 2, 2019

Was trying to go through a few projects gh-pages. After doing a sed operation, the permissions of a file appear to be stripped:

$ ls -la _layouts/
total 32
drwxr-xr-x   4 jpitz  staff   128 May  2 06:46 .
drwxr-xr-x  13 jpitz  staff   416 May  2 06:45 ..
----------   1 jpitz  staff  5177 May  2 06:46 default.html
-rw-r--r--   1 jpitz  staff  4228 May  2 06:48 reference.html

Not sure what happened there but should be easy to reproduce:

$ ag -l <pattern> | xargs sed -i "s:<pattern>:<replace>:g"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant