0

I have been using this method from Peter John Acklam's answer to How to find / list all unique files across two directories? for about 9 months now. Today, I tried it and got this error:

$ find A B -type f -exec sha1sum {} + | sort | uniq -u --check-chars 40 \
                                             | cut -c 43- | tee uniques3.txt
find: paths must precede expression: A
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec|time] [path...] [expression]

My system is:

  • Kernel: 4.15.0-42-generic x86_64 (64 bit gcc: 5.4.0)
  • Desktop: MATE 1.18.0 (Gtk 3.18.9-1ubuntu3.3)
  • Distro: Linux Mint 18.3 Sylvia

I don't think I am doing anything different from what I was doing previously.

What is the problem? How to make it work reliably?

  • 2
    Is find an alias or a shell function? (e.g. in Bash use type find to know). Or a wrapper script maybe? – Kamil Maciorowski Dec 20 '18 at 21:01

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.