help with text-append over SSH ?
j65nko at gmail.com
Sun Oct 14 16:31:21 PDT 2007
On 10/14/07, Wojciech Puchar <wojtek at wojtek.tensor.gdynia.pl> wrote:
> > 'dd' command (among others) on the remote host ... so
> > for instance, I can do things like this:
> > ssh user at host rm -rf filename
> > So, with all that in mind, how do I append the
> > contents of a local file to a remote file, over SSH,
> > using either 'echo' or 'dd' ?
> cat file |ssh user at host "cat >>file"
> replace cat with dd if you have to
You can drop the first "cat"
ssh user at host "cat >>file" <file
More information about the freebsd-questions