Inline editing with CopyFile
?
#163
-
It seems that currently there are two ways to do in-line file editing. Either with In a situation where I have a config I want to copy that differs between systems but that file does not come from a package, and echoing the whole content of the file with Ideally what I would like to do is something similar to the examples you provide with inline editing using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, I don't think there's a helper for this. I would try something like this: target="$(CreateFile /etc/passwd)"
cp "$config_dir"/templates/etc/passwd "$target"
sed -i 's/.../' "$target"
... |
Beta Was this translation helpful? Give feedback.
Yes, I don't think there's a helper for this. I would try something like this: