http://www.clarkvision.com/articles/digitalworkflow/scripts.html
R. N. Clark Email contact (is encoded to prevent spam):
has the following form: username@qwest.net where
username is rnclark
Here are some simple unix/linux scripts for creating your own image database. You can get unix tools for windows machines from a number of sources. A search of the database on a 1.8 GHz PC takes less than a second. For example my command "findimage family" returns 17,426 images. Example: "findimage alaska eagle" finds 695 entries, whereas "findimage eagle" finds 1558 images.
Here are the scripts:
creates database:
#!/bin/sh
f=disk.listing.01.08.2006.txt
find c: d: e: -exec ls -ld {} \; > $f
o=imagedatabase.01.08.2006.txt
date > $o
for i in .gif .jpg .tif .psd .crw .cr2
do
grep -i ${i}\$ $f >> $o
done
Query the database (put script in file called findimage):
#!/bin/sh
f=C:/imagedatabase/imagedatabase.01.08.2006.txt
grep -i ${1-.} $f | grep -i ${2:-.} | grep -i ${3:-.}
The 3 greps allow three search words (you can obviously extend this as much as one wants).
Home Page: ClarkVision.com
First Published January 2005.
Last updated January 8, 2005