Skip to content

Inline editing with CopyFile ? #163

Answered by CyberShadow
gardar asked this question in Q&A
Discussion options

You must be logged in to vote

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"
...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gardar
Comment options

Answer selected by gardar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #162 on March 27, 2023 12:57.