<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jun 16, 2014 at 5:29 AM, Karl-Philipp Richter <span dir="ltr"><<a href="mailto:krichter722@aol.de" target="_blank">krichter722@aol.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><code><br>
X=`mktemp`<br>
echo "abc" > $X/1<br>
echo "abc1" > $X/2<br>
Y=`mktemp`<br>
echo "abc" > $Y/1<br>
echo "abc2" > $Y/2<br>
</code></blockquote><div>I'll assume you meant to use -d on your mktemp commands (as another responder <i>almost</i> pointed out).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  * `rsync --dry-run --info=COPY -r -c $X/ $Y/` # same as above with<br>
trailing slashes<br></blockquote><div><br></div><div>This is almost the right command, you're just asking for the wrong info. The trailing slashes are needed to properly tell rsync to just copy the contents of the one dir to another without copying the directory by name inside the transfer.  If you had also asked for --info=NAME you'll have gotten the names of the transferred files.  The COPY info is for "files copied locally on the receiving side", as in the case where you use something like --copy-dest=DIR and rsync makes a copy of a local file instead of transferring it from the sending side.</div>

<div><br></div><div>As for what the -n option does, it just tell rsync not to do any work.  Any output generated is only what you tell it to output, so -n is usually paired with -v (--verbose).</div><div><br></div><div>..wayne..</div>

</div></div></div>