<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 25/03/2020 23:54, Ken D'Ambrosio
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:86a4129d75ab76d9365a10680a241fb1@jots.org">D'oh.  I
      checked my one-liner, noted I had a goof or two... and then sent
      it without fixing.
      <br>
      Gonna be that type of day, I'm afraid.  New-and-improved (a/k/a
      "functional") below.
      <br>
      <br>
      On 2020-03-25 08:52, Ken D'Ambrosio wrote:
      <br>
      [...]
      <br>
      less elegant, is more explicit, and doesn't
      <br>
      <blockquote type="cite">repeatedly walk the compared tree:
        <br>
      </blockquote>
      cd /media/project && find . -type f | while read fname; do
      ls
      <br>
      ~Documents/sub-tree/$fname > /dev/null 2> /dev/null || echo
      "$fname
      <br>
      not there."; done
      <br>
    </blockquote>
    <p>cd /media/project <br>
    </p>
    <p>for f in *</p>
    <p>do <br>
    </p>
    <p>     if [ ! -e ~Documents/sub-tree/"$f" ]</p>
    <p>     then</p>
    <p>         echo "$f missing."</p>
    <p>     fi</p>
    <p>done <br>
    </p>
    <p>is good for one level, but I'd use diff -r /media/project/
      ~Documents/sub-tree/<br>
      for a more complex (deeper) case<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
      cite="mid:86a4129d75ab76d9365a10680a241fb1@jots.org">
      <blockquote type="cite">
        <br>
        Note that there will be a superfluous -- but functionally noop
        -- "./"
        <br>
        in the path shown of any missing files.
        <br>
        <br>
        None of which invalidates the point about diff possibly being
        the most
        <br>
        efficient method.
        <br>
        <br>
        $.02,
        <br>
        <br>
        -Ken
        <br>
      </blockquote>
      <br>
    </blockquote>
    <div class="moz-signature">-- <br>
      <pre>   .~.     In my life God comes first....
   /V\         but Linux is pretty high after that :-D
  /( )\    Francis (Grizzly) Smit
  ^^-^^    <a class="moz-txt-link-freetext" href="http://www.smit.id.au/">http://www.smit.id.au/</a>
</pre>
    </div>
  </body>
</html>