Quantcast
Channel: DEVONtechnologies Community - Latest posts
Viewing all articles
Browse latest Browse all 16317

Unique search terms in order to find memos across documents

$
0
0

Or if you have the files indexed and you are familiar with using the terminal on your Mac, you could use this short shell script:

#!/bin/zsh

for filename in Δ*; do
   [ -f $filename ] || continue 
   mv -v $filename ${filename:s/Δ/¥/}
done

Move to the directory with the files then invoke it.

Here’s what it does:

  1. Iterates through the directory in which you have invoked it;
  2. Looks for files beginning with Δ then;
  3. Tests to see that it is not a folder (the [ -f $filename] bit) and;
  4. Substitutes Δ with ¥ if (2) & (3) are true.

The -v is the verbose flag which tells mv to print an action it has taken.

This assumes you only have a single Δ in the filename (ie you don’t use the same unicode in the filename proper itself or it will also get replaced. The script can be modified if that is the case).


Viewing all articles
Browse latest Browse all 16317

Trending Articles