With the release of IMDB 0.3.0, a command-line utility is included!
Why is this awesome for you? Basically, because you can now query IMDB and process the results with any of the great GNU tools available to you like grep.
Let me show you:
$ imdb Star Trek Searching for "Star Trek" 0060028 | Star Trek (1966) (TV series) 0796366 | Star Trek (2009) 0092455 | Star Trek: The Next Generation (1987) (TV series) 0112178 | Star Trek: Voyager (1995) (TV series) 0106145 | Star Trek: Deep Space Nine (1993) (TV series) 0117731 | Star Trek: First Contact (1996) 0084726 | Star Trek: The Wrath of Khan (1982) 0092007 | Star Trek IV: The Voyage Home (1986) 0079945 | Star Trek: The Motion Picture (1979) 0244365 | Enterprise (2001) (TV series) For clarity, only the ten first search results are shown.