Skip to content

Instantly share code, notes, and snippets.

@alexarje
Created July 2, 2014 08:55
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 alexarje/463123c108451173ce68 to your computer and use it in GitHub Desktop.
Save alexarje/463123c108451173ce68 to your computer and use it in GitHub Desktop.
OSX shell script for carrying out a spotlight search on words in all PDFs from the proceedings of the International Conference on New Interfaces for Musical Expression.
#!/bin/sh
clear
echo "Outputting some NIME data"
max=2013
for ((i=2001; i<=$max; ++i )) ;
do
echo "NIME $i"
mdfind -count -onlyin $i music
mdfind -count -onlyin $i gesture
mdfind -count -onlyin $i action
mdfind -count -onlyin $i motion
mdfind -count -onlyin $i movement
mdfind -count -onlyin $i emotion
mdfind -count -onlyin $i expressive
mdfind -count -onlyin $i "motion capture"
mdfind -count -onlyin $i accelerometer
mdfind -count -onlyin $i wii
mdfind -count -onlyin $i kinect
mdfind -count -onlyin $i "leap motion"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment