Skip to content

Instantly share code, notes, and snippets.

@privatezero
Created December 11, 2018 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save privatezero/70dd33dad5e049e1a3e764fd02caa913 to your computer and use it in GitHub Desktop.
Save privatezero/70dd33dad5e049e1a3e764fd02caa913 to your computer and use it in GitHub Desktop.
ls SOURCE | while read FILE ; do target=$(basename "$FILE"); if [ "$(find NEW-LOCATION -iname "$target")" ] ; then echo "found ${target}"; else echo "not found ${target}" ; fi; done > ~/Desktop/results.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment