I create bak files after every Perl operation.

How can you exclude all bak files in your Finder's search?

  • can you persuade it to save the bak files as file.bak.noindex ? If so, that will prevent Spotlight indexing them – Tetsujin Oct 8 '14 at 7:33
  • You could retrospectively add .noindex using this applescript - apple.stackexchange.com/questions/148766/… - or even set up Automator to do it. – Tetsujin Oct 8 '14 at 7:38
  • I didn't know my script would spread this fast :). – Thomas Jones Oct 8 '14 at 8:51

The answer to this question is to add .noindex -extension at the end of .bak. Thank you, Tetsujin! I refer this one liner to do it

find . -name "*\.tex" -exec bash -c 'mv "{}" "{}.noindex"' \;

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .