I'm triying to create an inline patchfile using heredoc and having some difficulty figuring out how to do this.
According to patch()
patch will take a patch file containing any of the four forms of differ-
ence listing produced by the diff(1) program and apply those differences
to an original file, producing a patched version. If patchfile is omit-
ted, or is a hyphen, the patch will be read from the standard input.
So how do I pipe a heredoc into patch?
Am I close?
According to patch()
patch will take a patch file containing any of the four forms of differ-
ence listing produced by the diff(1) program and apply those differences
to an original file, producing a patched version. If patchfile is omit-
ted, or is a hyphen, the patch will be read from the standard input.
So how do I pipe a heredoc into patch?
Bash:
cat <<EOF
some patch stuff
EOF
patch abc -o abc -i -
Am I close?